PDA

View Full Version : onunload event problem



mathurneni
06-01-2005, 03:31 AM
I have implemented some code in onunload javascript event.

1. Sometimes while in the middle of loading the page, the onunload javascript event is invoked. My page is very big. Is there any chance, this may be the cause?
2. In another scenario, on a page where processing takes more time, the onunload event is called suddenly. This is happening sometimes only.

I am confused why onunload will be called all of a sudden in the middle of the processing.

Any suggestions/inputs are helpful.

Thanx in advance.

jscheuer1
06-01-2005, 04:22 AM
If any part of your page causes a refresh. Refresh implies unload. Other than that, perhaps it is sloppy coding or, the event(s) designated onunload is/are being called for other reasons by other parts of the code. Hard to say without seeing it in action.

mathurneni
06-01-2005, 11:09 PM
Thanks for your reply.

If the pages is very big like like 500k, is there any chance that browser will do a refresh or send the request again to the server?

Is there any chance, that anything related to HTTP connection time out setting in the application server?