www.webdeveloper.com
Results 1 to 3 of 3

Thread: Ajax Call at Browser Close--Need Urgent suggestion

  1. #1
    Join Date
    Aug 2007
    Posts
    8

    Question Ajax Call at Browser Close--Need Urgent suggestion

    Hello All,
    Am making a call to action class via AJAX when the browser is closed for session. Now i have to make another call to another action class when a browser is closed. Is it possible that once a broswer is closed two ajax can be handled for differbt action class. Now am using onbeforeunload to achieve the first cas. Can i use the same now, problem is when the user closes the browser without saving the form i should update a status in database. I used synchronus AJAx also but not working is this because am already making a ajax request on browser close. Need urgent reply. Please anyone help on this
    thanks

  2. #2
    Join Date
    Feb 2003
    Location
    Michigan, USA
    Posts
    5,773

  3. #3
    Join Date
    Feb 2003
    Location
    Michigan, USA
    Posts
    5,773
    You also can't detect whether the browser is actually closing. The onbeforeunload and onunload events happen when the user closes the browser, closes a tab or navigates to another page. There is no way to detect whether the browser program is exiting memory.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles