janixams
29 May 2008, 1:06 PM
Hi all.
I have a treepanel in the west layout region and when the user select a node, I call a function that should to change the content of a contentPanel in the center region. I use the setUrl() method to load a HTML page, but the load icon never stop and the content is not loaded.
The problem is:
How can I include an HTML page into contentPanel?
Some of code here:
myTree.on('click', function (){
cargar_contenido_tabs();
})
function cargar_contenido_tabs(){
layout.findPanel('descripcion').getUpdateManager().loadScripts = true;
layout.findPanel('descripcion').setUrl({url:'http://ejemplo.cdr.xx', text:'cargando...'}, null, true);
layout.findPanel('descripcion').refresh();
};
And, Firebug shows this error:
[Exception... "'Permission denied to call method XMLHttpRequest.open' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no]
Any idea?
Thanks in advance.
I have a treepanel in the west layout region and when the user select a node, I call a function that should to change the content of a contentPanel in the center region. I use the setUrl() method to load a HTML page, but the load icon never stop and the content is not loaded.
The problem is:
How can I include an HTML page into contentPanel?
Some of code here:
myTree.on('click', function (){
cargar_contenido_tabs();
})
function cargar_contenido_tabs(){
layout.findPanel('descripcion').getUpdateManager().loadScripts = true;
layout.findPanel('descripcion').setUrl({url:'http://ejemplo.cdr.xx', text:'cargando...'}, null, true);
layout.findPanel('descripcion').refresh();
};
And, Firebug shows this error:
[Exception... "'Permission denied to call method XMLHttpRequest.open' when calling method: [nsIDOMEventListener::handleEvent]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no]
Any idea?
Thanks in advance.