View Full Version : load dynamical file in contentpanel

6 Aug 2007, 4:07 AM
We want to open a dynamic html page (with js scripts) in a contentpanel without reloading the main Ext scripts (ext-all.js...) again.We try to use load method with seturl: the page is loaded (view in firebug) but the only thing that appear is the loading text (define in load function). We try to load php file, html file (whitout <HEAD> and <BODY> tag) and js file but nothing is ok

Here is the js code:

Ext.onReady(function() {

var layout = new Ext.BorderLayout(document.body, {
hideOnLayout: true,
north: { split: false, initialSize: 60, titlebar: false },
center: {titlebar: false, autoScroll: false},

layout.add('north', new Ext.ContentPanel('north', 'North'));
layout.add('center', new Ext.ContentPanel('center', {title: 'Close Me', closable: true}));


url: "load.php",
discardUrl: false,
nocache: false,
text: "Loading...",
timeout: 30,
scripts: true


What is wrong in this code, do you have some idea?
Thanks for replies and sorry for the bad english!