Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Apr 2005
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts

    onunload - suddenly called problem

    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.

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    It shouldn't be called, maybe you have an onload somewhere in your script, can you show us your code please, or give us a link to the site in question?

  • #3
    New to the CF scene
    Join Date
    Apr 2005
    Posts
    8
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks for the immediate reply.

    It's a simple onunload in the body tag in a jsp, as mentioned below:

    <body onunload="logout();" bgcolor="cyan">
    Here is the content which is around 300 lines, with 70% static content and 30% dynamic content (from session and from database).
    </body>

    Did you face any kind of problem with onunload event, anytime.

    Thanx in advance.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •