1. #1
    Sencha User
    Join Date
    Dec 2012
    Posts
    13
    Vote Rating
    0
    JackThor is on a distinguished road

      0  

    Default Unanswered: requires not working

    Unanswered: 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 - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    37,652
    Vote Rating
    901
    Answers
    3575
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      0  

    Default


    Where are you doing the Ext.create for window?
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha User
    Join Date
    Jul 2012
    Posts
    33
    Vote Rating
    4
    Answers
    4
    Alexander Bauer is on a distinguished road

      0  

    Default


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

  4. #4
    Sencha User
    Join Date
    Dec 2012
    Posts
    13
    Vote Rating
    0
    JackThor is on a distinguished road

      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.