Hello again !
I tested another thing, I make a loop using a settimeout to check if
the busy state of the queue is true or false. It works fine on IE, but
on NS, the busy state does not set to false... here is the problem...
Look at my javascript code bellow :
// variables settings
var exthtmlvalue = null;//this is an object
containing the src of the html file
var Windowvalue = null;//this is a dynobject
(a window made by a widget)
//My function to load html in my contentLayer
(a child of window)
function LoadExtHTML(exthtml,Window)
{
if (exthtml && Window){
exthtmlvalue = exthtml;
Windowvalue = Window;
}
alert(LoadPanel.queue.busy);//here
is the test...
if (LoadPanel.queue.busy==true){
setTimeout('TTK_LoadExtHTML()',1000);//one
second delay is too long but its a test...
}else{
Windowvalue.ContentLayer.lp = new
LoadPanel(exthtmlvalue.getAttribute('src'));//this sets the url of loadpannel
Windowvalue.ContentLayer.lp.setAutoResizeHeight(false);
Windowvalue.ContentLayer.lp.setSize(Windowvalue.ContentLayer.w,Windowvalue.ContentLayer.h);
Windowvalue.ContentLayer.lp.moveTo(0,0);
Windowvalue.ContentLayer.addChild(Windowvalue.ContentLayer.lp);
exthtmlvalue = null;
Windowvalue = null;
}
}
Nicolas MASSART wrote:
Hi!
I'm using the loadpanel widget to lod content in layers.
No problems on IE... it works fine.
But on NS, it loads only the first file and display it using my window
widget and stops before the second window...
Bellow is the code I used, do you see any things ???
Note that : ContentLayer is a simple child dynlayer of my window.
Exthtml is an object containing the src of the file to load.
So this function is called each time I wand to load content in a window.
function LoadExtHTML(exthtml,Window)
{
Window.ContentLayer.lp = new LoadPanel(exthtml.getAttribute('src'));
Window.ContentLayer.lp.setAutoResizeHeight(false);
Window.ContentLayer.lp.setSize(Window.ContentLayer.w,Window.ContentLayer.h);
Window.ContentLayer.lp.moveTo(0,0);
Window.ContentLayer.addChild(Window.ContentLayer.lp);
}
Thanks !
Nicolas
--
----------------------------------------
Nicolas MASSART
mail : [EMAIL PROTECTED]
Coleebris
12, av de Versailles 75016 PARIS
web : http://www.coleebris.com/
tel : 01 40 50 60 47
fax : 01 40 50 67 66
----------------------------------------
--
----------------------------------------
Nicolas MASSART
mail : [EMAIL PROTECTED]
Coleebris
12, av de Versailles 75016 PARIS
web : http://www.coleebris.com/
tel : 01 40 50 60 47
fax : 01 40 50 67 66
----------------------------------------