my applet loading setup has no such problems.  it does not return from the setURL method until ALL code has been downloaded.  as such, the problem of syncronising does not exist.

I am still to find any reason for not implementing this setup as the default method of loading in NS4.  It is even possible to do this type of loading without the use of an applet and call the Java objects directly using LiveConnect in NS.

Nicolas MASSART wrote:

The problem looks to be more dificult...
Infact, the real bug is that Loadpanel can't check if a file is completely loaded or not.(I speack only about NS4 wich uses the 'src' property of the layer to load the html content).
So if you have to LoadPanels loading at the same time (only a few miliseconds of delay), The first Loadpanel loads correctly but the second do not load. If you insert a break (an alert('hello'); for example) between the two loadpanels creation, the files are able to load completely and so you don't have any problems.
Do anynody see a workaround or any ways to patch the loadpanel ?
Thanks.
See example code bellow (test it on NS4, any plateform)

<html>
    <head>
        <title>DynAPI Distribution: LoadPanel Example modified</title>
        <script language="Javascript" src="../src/dynapi.js"></script>
        <script language="Javascript">
            DynAPI.setLibraryPath('../src/lib/');
            DynAPI.include('dynapi.api.*');
            DynAPI.include('dynapi.event.*')
            DynAPI.include('dynapi.gui.loadpanel.js');
        </script>
        <script language="Javascript">
            DynAPI. {
            //******* the first loadpanel ***************
             lp = new LoadPanel('dynapi.gui.loadpanel-file1.html');
             lp.setSize(250,50);
             lp.moveTo(50,100);
             lp.setBgColor('yellow');
             DynAPI.document.addChild(lp);
           //******* the second loadpanel ***************
             lp2 = new LoadPanel('dynapi.gui.loadpanel-file1.html');
             lp2.setSize(250,50);
             lp2.moveTo(300,100);
             lp2.setBgColor('red');
             DynAPI.document.addChild(lp2);
            }
            //-->
        </script>
    </head>
    <body>
    </body>
</html>
 

--
Michael Pemberton
[EMAIL PROTECTED]
ICQ: 12107010
 

Reply via email to