Update Database on browser close
I was trying to figure to solve the above problem. I
tried following way but did not suite perfectly to my
requirement and at last I stick to
1. Tried JavaScript onUnload/Onbeforeunload event
Problem
-
It does not work properly
- Do not have control of current browser
- Does note work on Netscape
2.
Calling web service from JavaScript
3. Remote Scripting from Java Script.
4.
XML Activex Object
5. Using AJAX (For More http://weblogs.asp.net/mschwarz)
Tips:
- For this make
sure you disable the Google Popup for JavaScript
onunload.
- Debuge Java Script
error on
I will try to write more about this issue later some free time.If you have any question send me a mail.
Cheers.
Suresh Behera