Thank you for reporting this bug. We will make it our priority to review this report.
  1. #1
    Sencha Premium Member
    Join Date
    Apr 2010
    Posts
    193
    Answers
    3
    Vote Rating
    24
    elgs will become famous soon enough

      0  

    Default Answered: [BUG] Path broken with location.href or iframe

    Answered: [BUG] Path broken with location.href or iframe


    The url references in the target of location.href or in the iframe are broken. Dear Sencha, please respond. My projects are heavily organized by iframe. If it does not work, the packager is useless to me. Thanks.

    Let me describe my situations more clearly:
    Layout 1:
    Code:
    /index.html
    /ext-4.1/...
    /module_1/index.html
    /module_2/index.html
    /module_.../index.html
    Code of /index.html
    Code:
    <script>location.href = "module_1/index.html";</script>
    Code of /module_1/index.html
    Code:
    <html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <script src="../ext-4.1/ext-all.js"></script>
        <link rel="stylesheet" href="../ext-4.1/resources/css/ext-all.css">
        <script type="text/javascript" src="app.js"></script>
    </head>
    <body></body>
    </html>
    Problem: the links starting with ../ in /module_1/index.html is not able to reach the ext library in the /ext-4.1.

    Layout 2:
    Code:
    /index.html
    /app.js
    /ext-4.1/...
    /module_1/index.html
    /module_2/index.html
    /module_.../index.html
    Code of /index.html
    Code:
    <html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <script src="ext-4.1/ext-all.js"></script>
        <link rel="stylesheet" href="ext-4.1/resources/css/ext-all.css">
        <script type="text/javascript" src="app.js"></script>
    </head>
    <body></body>
    </html>
    Code of /app.js
    Code:
    Ext.application({
        name: 'MyApp',
        launch: function() {
            Ext.create('Ext.container.Viewport', {
                items: {
                    layout: 'fit',
                    html: '<iframe src=module_1/index.html width=100% height=100% />'
                }
            });
        }
    });
    Code of /module_1/index.html
    Code:
    <html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <script src="../ext-4.1/ext-all.js"></script>
        <link rel="stylesheet" href="../ext-4.1/resources/css/ext-all.css">
        <script type="text/javascript" src="app.js"></script>
    </head>
    <body></body>
    </html>
    Problem: the links starting with ../ in /module_1/index.html is not able to reach the ext library in the /ext-4.1.

    Please help! Thanks.

  2. Problem solved. It turned out being the problem of a store without data source. So the conclusion is the packaged program is less tolerant than chrome. But, it's good.

  3. #2
    Sencha Premium Member
    Join Date
    Apr 2010
    Posts
    193
    Answers
    3
    Vote Rating
    24
    elgs will become famous soon enough

      0  

    Default


    @jarrednicholls, could you please take a look at this? I really need your help! Thanks.

  4. #3
    Sencha Premium Member
    Join Date
    Apr 2010
    Posts
    193
    Answers
    3
    Vote Rating
    24
    elgs will become famous soon enough

      0  

    Default


    Sorry, after minified this project, it seems to work. That means the page in the iframe seems to be able to access ../ext-4.1. I will do more research and come back to update in case I find anything valuable. Any insights from anyone will be greatly appreciated.

  5. #4
    Sencha Premium Member
    Join Date
    Apr 2010
    Posts
    193
    Answers
    3
    Vote Rating
    24
    elgs will become famous soon enough

      0  

    Default


    Here's some more update:
    Seems when the program in the iframe is small, it works. However, when it's getting big, it has the error as shown on the upper left window in the screenshot. The packaged app just showed a white screen, shown as on the lower left. While the same source code works well in Chrome, as shown on the lower right.
    SDP.jpg

  6. #5
    Sencha Premium Member
    Join Date
    Apr 2010
    Posts
    193
    Answers
    3
    Vote Rating
    24
    elgs will become famous soon enough

      0  

    Default


    Some more update:

    I tried to remove things piece by piece from my real project towards my minified, because I believe there will be a moment after I removed certain piece of component, it will work. Now it turned out when I removed a combo, it works. I will continue doing investigation and come back to update.
    Screen Shot 2013-02-28 at 9.56.18 PM.jpg

    Not sure if I'm too noisy in this forum.

  7. #6
    Sencha Premium Member
    Join Date
    Apr 2010
    Posts
    193
    Answers
    3
    Vote Rating
    24
    elgs will become famous soon enough

      0  

    Default


    Problem solved. It turned out being the problem of a store without data source. So the conclusion is the packaged program is less tolerant than chrome. But, it's good.

  8. #7
    Sencha - Desktop Packager Dev Team jarrednicholls's Avatar
    Join Date
    Mar 2007
    Location
    Frederick, MD
    Posts
    1,747
    Answers
    20
    Vote Rating
    7
    jarrednicholls will become famous soon enough jarrednicholls will become famous soon enough

      0  

    Default


    Thanks for the update, and I'm sorry I wasn't able to help sooner. Glad you solved the issue!

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi