Hi all,
I'm trying to implement a simple layout with a header on top, a menu bar on the left and the main content in the middle. The header and the menu bar are always the same but the main content depends on the menu item clicked. Now when the user click on a menu item I change the main content (a ContentPanel) with the function load(). Something like:
PHP Code:
// node is something like { text: 'Test page', link: 'test.html' }
var loadPage = function(node) {
var main = layout.findPanel('main-contents');
main.setTitle(node.text);
main.load({
url: node.link,
discardUrl: false,
nocache: false,
text: "Loading...",
timeout: 30,
scripts: true // **Load the js code**
});
};
It works well but the problem is that I'm not able to debug the code dynamically loaded (I use firebug). Anyone can help me?
Ciao,
Lithian.