Why not have all included .js files increment a counter. For example, if you 
include 4 .js files then the onLoad event can be called when this global 
counter reach's the value 4.

DynAPI.onLoad=function() {
  while (DynAPI.loadedCtr < 4) {
    // Do nothing.. wait for files to load..
  }
  // Other onLoad statements...
}

Well.... it might just work...

>From: "Digital Strider" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: RE: [Dynapi-Dev] IE5 / PWS problems
>Date: Thu, 14 Jun 2001 07:16:00 -0700
>
>The advantage of setTimeout is that it is performed after all other
>functions on the stack are completed.  A setTimeout of "0" will also do the
>same thing.  Common technique.
>
>Laters...
>
>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]]On Behalf Of Jozef
>Pierlejewski
>Sent: Thursday, June 14, 2001 1:48 AM
>To: [EMAIL PROTECTED]
>Subject: RE: [Dynapi-Dev] IE5 / PWS problems
>
>
>yes i was thinking something like that, and presumably i'd need to just
>increase the timeout until it worked.....
>
>(i wonder what happens when we start getting really fast cable internet
>connections? same problem occurring?)
>
>
>however i was hoping for something more along the lines of
>
>DynAPI.onLoad=function()
>{
>       if(DynAPILoaded) // this is set once all javascripts
>                            // have initialised...i dont know how however!!
>       {
>               DynAPI.mainPage()
>       }
>       else
>       {
>               window.setTimeout("Dynapi.onLoad()", 50)
>       }
>}
>
>
>
>
>thanks
>joe
>
>-----Original Message-----
>From: [EMAIL PROTECTED]
>[mailto:[EMAIL PROTECTED]]On Behalf Of Richard
>Bennett
>Sent: Thursday, June 14, 2001 7:54 AM
>To: [EMAIL PROTECTED]
>Subject: Re: [Dynapi-Dev] IE5 / PWS problems
>
>
>You seem to be the only one having this problem, but a little hack might
>solve it, if you delay the page a little, this might be enough.
>Try this:
>
>DynAPI.onLoad=function() {
>     setTimeout('DynAPI.mainPage()',500)
>}
>DynAPI.mainPage=function() {
>     //your normal code goes here
>}
>
>Richard.
>
>----- Original Message -----
>From: "jmp909" <[EMAIL PROTECTED]>
>To: <[EMAIL PROTECTED]>
>Sent: 14 June, 2001 02:32
>Subject: RE: [Dynapi-Dev] IE5 / PWS problems
>
>
> > i've still had no luck with this. remote servers run the stuff fine (ie 
>if
>i
> > am connecting to a web server via the internet)...
> >
> > i'm wondering what i would need to do within dynapi.js so that the
> > dynapi.onload event actually checked to see if all .js included files 
>had
> > loaded and run? a timeout? a flag?
> >
> > i suppose if there are no other developers getting this problem then it 
>is
> > going to be tricky to fix.
> >
> > thanks
> > joe.
> >
> >
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of jmp909
> > Sent: 12 June 2001 02:47
> > To: [EMAIL PROTECTED]
> > Subject: RE: [Dynapi-Dev] IE5 / PWS problems
> >
> >
> > aaaarrgghh...it worked for a while and now it doesnt :(
> >
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of jmp909
> > Sent: 11 June 2001 23:23
> > To: [EMAIL PROTECTED]
> > Subject: [Dynapi-Dev] IE5 / PWS problems
> >
> >
> > Hi,
> >
> > (Michael asked if my problems with "object unknown" errors when creating
>new
> > ViewPorts etc occurred when running off the file system)
> >
> > DynAPI worked fine off the local file system as opposed to through the 
>web
> > server
> >
> > also If I change my cache settings to:
> >
> > Check for newer versions of stored pages - *Automatically*
> >
> >
> > then everything also works fine running through the web server. Normally 
>i
> > have the setting set to "every time" ie "no cache" and this causes it to
> > fail on PWS....i dont know why this is the case but since i dont have
> > problems running off a remote server normally even with cache set to
> > "automatic", i can bypass the problem now during development by changing
>my
> > cache settings.
> >
> > It would be nice if someone could still fix (and therefore identify) the
> > problem although it's not really totally necessary for now.
> >
> > thanks
> > joe
> >
> >
> > _______________________________________________
> > Dynapi-Dev mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/dynapi-dev
> >
> >
> > _______________________________________________
> > Dynapi-Dev mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/dynapi-dev
> >
> >
> > _______________________________________________
> > Dynapi-Dev mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/dynapi-dev
> >
>
>
>_______________________________________________
>Dynapi-Dev mailing list
>[EMAIL PROTECTED]
>http://lists.sourceforge.net/lists/listinfo/dynapi-dev
>
>
>_______________________________________________
>Dynapi-Dev mailing list
>[EMAIL PROTECTED]
>http://lists.sourceforge.net/lists/listinfo/dynapi-dev
>
>---
>Incoming mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.256 / Virus Database: 129 - Release Date: 5/31/2001
>
>---
>Outgoing mail is certified Virus Free.
>Checked by AVG anti-virus system (http://www.grisoft.com).
>Version: 6.0.256 / Virus Database: 129 - Release Date: 5/31/2001
>
>
>_______________________________________________
>Dynapi-Dev mailing list
>[EMAIL PROTECTED]
>http://lists.sourceforge.net/lists/listinfo/dynapi-dev

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


_______________________________________________
Dynapi-Dev mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/dynapi-dev

Reply via email to