Hi,
I know that it's been covered in varying degrees in other posts, but I can't seem to pull all the threads together to cover my implementation.
I have a border layout main page. There is a tab panel in the center region. I would like to load pages that I have created as tabs into this tab panel. Error loading cmicnfg.cpl -- SOLUTION HERE! - Page 3 - Windows NT :: 10 posts - Last post: Jan 25, 2006The only thing that doesn't work are the .wav files in sound audio good to check: Control Panel, Sounds and Audio Devices, Sounds tab. http://www.daniweb.com/forums/thread25517-3.htmlHOME |
An example of a page that I would like to load contains an ext form layout and an ext grid. I am including the ext files at the top of the (htm) page and when I navigate to the page directly, it loads fine.
I have set
Ext.Updater.defaults.loadScripts = true;
in my main page ( the one with the border layout ). Now at least the firebug console.log command works in the loaded page. I can't get the rest of the code to work properly though. I'm wrapping it in
Ext.onReady(function(){
// my code
});
maybe that is where my problem lies?
Ext: Can you please tell me
1. What is the best practise for developing content that will be rendered into a border layout? I'm going for something like your documentation pages, but on the individual pages I have forms and grids created using the extJs framework. Should I be including the javascript on the main layout page and just call the function from the page when it get's loaded? It seems like that would cause some bloat on the main page?? I would like to keep each page's script on that page.
2. Should I be including the ext-base.js / ext-all.js files on every page that is rendered in the border layout? Is it possible to just have those includes on the main page and access the library from there?
3. How do I initialise the code to build the form on the individual pages once they are loaded? Should I be using "Ext.onReady" like I have written above, or are there particular events I should be hooking into?
Thanks for the clarity,
Joshua
Oh wow.. I am just loving using ExtJs. :D
This may not answer everything, but
1) Dynamic pages you load should be html snippets, not entire pages e.g. no body/head tags.
2) You should not re-include the ext js files in the dynamic content you load.
3) The JS code in the dynamic content should not be in an onReady block. The code will be eval'd once the entire chunk is loaded.
Red Hat's Rough Recovery From CFO Exit
Windows Live Finds a New, Pre-installed Home
|