1. #1
    Sencha User
    Join Date
    Jun 2011
    Posts
    9
    Vote Rating
    0
    madhusanmani is on a distinguished road

      0  

    Default Unanswered: Including different js file to load the extjs component

    Unanswered: Including different js file to load the extjs component


    Hi All,

    In my application i need to display the same panel with diff data in different pages.
    so i am trying to create a common panel.js file and try to include in all the files. but while doing this i am getting the following error.

    "An uncaught error was raised: "The following classes are not declared even if their files have been loaded: 'Ext.ux.forexDetails'. Please check the source code of their corresponding files for possible typos: 'js/forexra/pages/forexDetails.js'"."


    Ext.Loader.setConfig({
    enabled: true
    });
    Ext.Loader.setPath('Ext.ux', 'js/forexra/pages');


    Ext.require([
    'Ext.ux.forexDetails'
    ]);



    Ext.onReady(function(){
    // second tabs built from JS
    var advSearch1 = new Ext.form.FormPanel({

    width: 930,
    height: 565,
    frame: true,
    autoScroll: true,
    autoHeight:true,

    items: [{
    xtype:'tabpanel'
    ,activeItem:0
    ,border:false


    }
    ,items:[{
    title:'Forexra List',
    id:'activeList',
    items:[testPanel]
    },{
    title:'Deleted List',
    id:'inactiveList',
    items:[testPanel],
    disabled:true
    }],
    listeners: {

    }
    }
    ]

    });


    advSearch1.render('mydiv1');
    })

    ======================================================================
    This is the common Panle js file
    ======================================================================


    Ext.Loader.setConfig({
    enabled: true
    });
    Ext.Loader.setPath('Ext.ux', 'js/forexra/ux');

    Ext.require([

    ])
    Ext.onReady(function(){

    testPanel = new Ext.FormPanel({
    title: 'Forex Details',
    standardSubmit: true,
    frame:true,
    width: 950,
    height: 635,
    border:0,
    defaults: {
    width: 100,
    align:'right'
    },

    defaultType: 'button',
    items: [

    ]
    });
    });

    Please help me.

  2. #2
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,353
    Answers
    102
    Vote Rating
    79
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    Your problem is that you're not following the best practices when it comes to using Ext.Loader. I have a great writeup here: http://www.sencha.com/blog/using-ext...r-application/

  3. #3
    Sencha User
    Join Date
    Jun 2011
    Posts
    9
    Vote Rating
    0
    madhusanmani is on a distinguished road

      0  

    Default Hi

    Hi


    Thanks a lot for qucik and very usefull solution..

    Thanks,
    Madhu

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