Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

onLoad too early??

Status
Not open for further replies.

transprox

Programmer
Nov 29, 2002
8
HU
Welcome! I've had problems with <body onload=init()> using PHP and JS together: the init started well before the page was complete. I've moved the init() just before the </body> and it seems all is well. But I am not sure. Maybe the lack of Content-length field drives IE nuts? (According to my knowledge, Apache does not send a Content-length field with dyanmic files)
 
I tried putting the script after </body> so it would find all <A> tags in the HTML and that worked without any evidence of problems in placement of script. Didn't try after </HTML>. It found the tags whereas before the <BODY> there was nothing to find - obvious in hindsight.

Best of luck. I think the onload= is where it will activate though.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top