Results 1 to 4 of 4

Thread: requires not working

  1. #1
    Sencha User
    Join Date
    Dec 2012
    Posts
    13
    Vote Rating
    0
      0  

    Default requires not working

    Hi,

    So I need I am using the example for Ext.window.Window

    Ext.create('Ext.window.Window',{ title:'Hello', height:200, width:400, layout:'fit', items:{// Let's put an empty grid in just to illustrate fit layout xtype:'grid', border:false, columns:[{header:'World'}],// One header just for show. There's no data, store:Ext.create('Ext.data.ArrayStore',{})// A dummy empty data store}}).show();I have in my requires
    requires:['Ext.window.Window','Ext.data.ArrayStore'],

    I have in my requires, requires:['Ext.window.Window', 'Ext.data.ArrayStore'],
    but when I run it I get this error,



    • [COLOR=red !important]Uncaught Error: [Ext.Loader] Failed loading './window/Window.js', please verify that the file exists [/COLOR]
    [COLOR=red !important][/COLOR]

    Is there a reason why the loader keeps looking for Window.js locally?



  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,553
    Answers
    3931
    Vote Rating
    1272
      0  

    Default

    Where are you doing the Ext.create for window?
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  3. #3
    Sencha User
    Join Date
    Jul 2012
    Posts
    33
    Answers
    4
    Vote Rating
    4
      0  

    Default

    Did you overwrite the Ext.Loader path of "Ext" ?

  4. #4
    Sencha User
    Join Date
    Dec 2012
    Posts
    13
    Vote Rating
    0
      0  

    Default

    I am trying to do it in my controller, where if a button is pushed it pops up a window. But thanks for the anyways it don't need it no more. On the other hand why do I see Chinese on Sencha instead on English. It only on the Sencha website.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •