1. #1
    Ext JS Premium Member
    Join Date
    Mar 2011
    Posts
    33
    Vote Rating
    0
    m4dc4p will become famous soon enough

      0  

    Default ext.js vs. ext-debug.js and Loader config issue?

    ext.js vs. ext-debug.js and Loader config issue?


    When I include ext-debug, I can see that a bunch of js files get loaded (which I want).

    When I just include ext.js, it seems like the Loader doesn't get configured correctly. None of the js files I want get included, and Ext.create doesn't seem to find them.

    I am using document.body.appendChild to dynamically include ext.js/ext-debug.js in my page, if that makes a difference.

    Am I missing something obvious that I should configure when using ext.js vs. ext-debug.js?

    Thanks for any help!

  2. #2
    Ext JS Premium Member stevil's Avatar
    Join Date
    Nov 2007
    Location
    Denver, CO
    Posts
    1,045
    Vote Rating
    9
    stevil will become famous soon enough

      0  

    Default


    In Fiddler or Firebug, are you seeing 404s for anything, or is no loading attempt taking place?

    If you're getting 404s, I'd say that you need to set paths on the Loader.

    If not, have you tried statically including ext.js?

    Also, have you tried ext-all.js? (minified, all packages)

    stevil

  3. #3
    Ext JS Premium Member
    Join Date
    Mar 2011
    Posts
    33
    Vote Rating
    0
    m4dc4p will become famous soon enough

      0  

    Default


    Quote Originally Posted by stevil View Post
    In Fiddler or Firebug, are you seeing 404s for anything, or is no loading attempt taking place?
    When I use ext-debug, I don't get any 404s. When I just use ext, I get one 404, and it clearly doesn't reference the right path.

    For example, using ext-debug.js I will see /ext-4/src/util/Point.js load. With ext.js, I see a 404 on '/util/Point.js'.


    Quote Originally Posted by stevil View Post
    If not, have you tried statically including ext.js?
    Statically including ext.js results in the error:

    "Ext.Loader is not enabled ..."

    Statically including ext-debug.js works fine, like above.

    That seems to imply that ext.js doesn't configure the Loader automatically. How can I get the configuration info that ext-debug.js provides, but only include ext.js?

    Thanks for your help so far!

  4. #4
    Ext JS Premium Member stevil's Avatar
    Join Date
    Nov 2007
    Location
    Denver, CO
    Posts
    1,045
    Vote Rating
    9
    stevil will become famous soon enough

      0  

    Default


    Quote Originally Posted by m4dc4p View Post
    For example, using ext-debug.js I will see /ext-4/src/util/Point.js load. With ext.js, I see a 404 on '/util/Point.js'.
    OK, it's a path issue. Try this, please, in whatever startup script runs after Ext is loaded:
    PHP Code:
        Ext.Loader.setPath('Ext''/ext-4/src'); 
    Let me know if that helps!

    stevil

  5. #5
    Ext JS Premium Member
    Join Date
    Mar 2011
    Posts
    33
    Vote Rating
    0
    m4dc4p will become famous soon enough

      0  

    Default


    That worked! Thanks so much for your help!

  6. #6
    Ext JS Premium Member stevil's Avatar
    Join Date
    Nov 2007
    Location
    Denver, CO
    Posts
    1,045
    Vote Rating
    9
    stevil will become famous soon enough

      0  

    Default


    no problem!

  7. #7
    Sencha User Jacky Nguyen's Avatar
    Join Date
    Jul 2009
    Location
    Palo Alto, California
    Posts
    469
    Vote Rating
    14
    Jacky Nguyen has a spectacular aura about Jacky Nguyen has a spectacular aura about

      0  

    Default


    Quote Originally Posted by m4dc4p View Post
    When I include ext-debug, I can see that a bunch of js files get loaded (which I want).

    When I just include ext.js, it seems like the Loader doesn't get configured correctly. None of the js files I want get included, and Ext.create doesn't seem to find them.

    I am using document.body.appendChild to dynamically include ext.js/ext-debug.js in my page, if that makes a difference.

    Am I missing something obvious that I should configure when using ext.js vs. ext-debug.js?

    Thanks for any help!
    ext.js is only meant to be used during production, whereby you have properly generated the custom build for your application using the SDK Tools, and include the bundled file inside your HTML document. There's no point using ext.js when you're developing the application, it's just not meant to be. Please refer to http://dev.sencha.com/deploy/ext-4.0...g_started.html
    Sencha Touch Lead Architect

Similar Threads

  1. Replies: 0
    Last Post: 23 Mar 2011, 4:40 AM
  2. Issue with ext-all-debug.js
    By lguzman in forum Ext 3.x: Help & Discussion
    Replies: 6
    Last Post: 10 Sep 2010, 6:34 AM
  3. [CLOSED] Ext.Loader issue in IE8
    By nak1 in forum Ext 3.x: Bugs
    Replies: 6
    Last Post: 26 Jul 2010, 3:01 PM
  4. ext-all-debug.js and ext-all issue
    By psambhus in forum Ext 2.x: Help & Discussion
    Replies: 4
    Last Post: 25 Feb 2009, 4:35 AM

Thread Participants: 2

Tags for this Thread

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