aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Is there anything before onload? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Is there anything before onload?" Watch "Is there anything before onload?" New topic
Author

Is there anything before onload?

Priya Lavti
Ranch Hand

Joined: Oct 11, 2004
Posts: 41
Hi all,

I want to set some preferences on an html page which are coming from Java Session. I set these preferences on onload event of the page. My problem is that the page has lots of Images which takes time in loading the page, and consequently it delays the onload event. And for a while it seems that preferences has not been set.

Now my question is that is there anything in javascript or html or JSP which can be triggered before onload event for setting the preferences without delay.

~pinks
[ October 17, 2005: Message edited by: Bear Bibeault ]

-Priya
SCJP 5.0
Scheepers de Bruin
Ranch Hand

Joined: Jul 19, 2005
Posts: 99
Preferences like?

Why don't you apply these 'preferences' while constructing the page server side?


We're doomed!!<br />Yay!!!<br />No that's bad Girr!!<br />Yay!!!
Rajeev Ravindran
Ranch Hand

Joined: Aug 27, 2002
Posts: 455
what about window.onbeforeunload ?

Thanks,
Rajeev Ravindran
Ranch Hand

Joined: Aug 27, 2002
Posts: 455
oops sorry !! i am not sure if there is anything that calls before onLoad()

Thanks,
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Only thing that calls before onload is putting the code inline in the page. Therfore it executes when the browser gets to it when the page is rendering.

Eric
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Is there anything before onload?