Re: onload handler order of firing
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.javascript archive

Re: onload handler order of firing

From: one man army <newsAT@screenlightDOT.com>
Date: Wed Feb 01 2006 - 21:04:27 CET

In article <newsAT-8B01FD.12540131012006@newsclstr02.news.prodigy.com>,
 one man army <newsAT@screenlightDOT.com> wrote:

> What else can I use besides onload() that will be called when I enter a
> page? If there is one, is the order betweenthe two _types_ of events
> prescribed?
>
> reason- I am having a problem with a third party API in which it gets
> confused when I init it in doc.onload(), then make a bunch of calls
> before it gets a chance to draw the first time. I want to split the code
> to let it init, then make the calls, but all on upon entering the page.
>
> btw, I am assigning the event handlers in the simplest possible
> manner, in the HTML code itself. So no fancy dynamic event handling
> additions here. They call modestly complex functions in an included .js
> file.
>
> thanks for pointers, I am on a deadline

 on another list, someone just suggested this:

<body onload=myStartTimer(); >

function myStartTimer(){
setTimeOut("myOnload()",500) ; // delay onload half a second
}

  other suggestions welcome
Received on Tue Feb 7 21:30:28 2006