1. #1
    Ext JS Premium Member
    Join Date
    Aug 2011
    Posts
    26
    Vote Rating
    0
    lisper is on a distinguished road

      0  

    Question Unanswered: Dynamic loading weirdness

    Unanswered: Dynamic loading weirdness


    I'm at the very beginning of climbing the extjs learning curve. Looking at:

    [My root URL]/extjs/docs/index.html#/guide/getting_started

    I can run the tiny example on that page and it works. But the docs say:

    You should see a warning in the console that looks like this:


    I do not see that warning. And when I add the line that the docs suggest:

    Ext.require('Ext.container.Viewport');

    The app stops working with the following error:

    TypeError: Result of expression 'c' [null] is not a constructor.

    Is this an indication that I'm doing something wrong, or just the docs lagging behind reality? I'm running a fresh install of extjs 4.0.2a. Thanks!


  2. #2
    Sencha User
    Join Date
    Sep 2009
    Posts
    85
    Answers
    8
    Vote Rating
    -1
    raz0r1 is an unknown quantity at this point

      0  

    Default


    I think it lagging behind. I don't get the message , too

  3. #3
    Ext JS Premium Member christocracy's Avatar
    Join Date
    Oct 2006
    Location
    Montreal
    Posts
    381
    Vote Rating
    0
    christocracy is on a distinguished road

      0  

    Default Show me

    Show me


    Show me the html file you're using to boot your application.

    When you see weird variable names like "c is undefined", this mean you're probably using the deployment version of the library, which is minified to reduce file-size in a production environment.

    In a development environment, you want to use the unminified version of the library which provides much more helpful error messages.
    /**
    * @author Chris Scott
    * @business www.transistorsoft.com
    * @rate $150USD / hr; training $500USD / day / developer (5 dev min)
    *
    * @SenchaDevs http://senchadevs.com/developers/transistor-software
    * @twitter http://twitter.com/#!/christocracy
    * @github https://github.com/christocracy
    */

  4. #4
    Ext JS Premium Member
    Join Date
    Aug 2011
    Posts
    26
    Vote Rating
    0
    lisper is on a distinguished road

      0  

    Default


    Code:
    <html>
    <head>
      <title>Hello Ext</title>
    
    
      <link rel="stylesheet" type="text/css" href="../extjs/resources/css/ext-all.c\
    ss">
      <script type="text/javascript" src="../extjs/ext-debug.js"></script>
      <script type="text/javascript" src="app.js"></script>
    </head>
    <body></body>
    </html>

  5. #5
    Ext JS Premium Member christocracy's Avatar
    Join Date
    Oct 2006
    Location
    Montreal
    Posts
    381
    Vote Rating
    0
    christocracy is on a distinguished road

      0  

    Default Strange

    Strange


    Ok, you're using ext-debug.js.

    Can you show me a screenshot of the stack-trace in chrome?
    /**
    * @author Chris Scott
    * @business www.transistorsoft.com
    * @rate $150USD / hr; training $500USD / day / developer (5 dev min)
    *
    * @SenchaDevs http://senchadevs.com/developers/transistor-software
    * @twitter http://twitter.com/#!/christocracy
    * @github https://github.com/christocracy
    */

  6. #6
    Ext JS Premium Member
    Join Date
    Aug 2011
    Posts
    26
    Vote Rating
    0
    lisper is on a distinguished road

      0  

    Default


    I may need a clue about how to do that. This is the result of my best effort, but it sure doesn't look right to me.

    screenshot.jpg

  7. #7
    Sencha Premium Member skirtle's Avatar
    Join Date
    Oct 2010
    Location
    UK
    Posts
    3,572
    Answers
    540
    Vote Rating
    310
    skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future skirtle has a brilliant future

      0  

    Default


    1. Open the JS console (ctrl+shift+J). Note you must have the console open when the error occurs to get a stacktrace.
    2. Reload the page or do whatever else it is you do to cause the error.
    3. To the left of the error message you'll see a small, solid, gray arrow. Click it. That should expand out the stacktrace.

  8. #8
    Ext JS Premium Member
    Join Date
    Aug 2011
    Posts
    26
    Vote Rating
    0
    lisper is on a distinguished road

      0  

    Default


    Thanks! That is far from intuitively obvious. Here's the backtrace:

    bt.jpg

  9. #9
    Ext JS Premium Member
    Join Date
    Aug 2011
    Posts
    26
    Vote Rating
    0
    lisper is on a distinguished road

      0  

    Default


    I think I figured it out. The problem was that the call to Ext.require was inside my application.launch function. When I move it outside the launch function it seems to work.

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