Wrox Programmer Forums
|
Classic ASP Basics For beginner programmers starting with "classic" ASP 3, pre-".NET." NOT for ASP.NET 1.0, 1.1, or 2.0
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Classic ASP Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 27th, 2006, 08:46 AM
Registered User
 
Join Date: Mar 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default on window unload event in javascript.

hi,

i have an asp page where i have am using some c++ created objects using server.createobject.
i like to create an object and call some methods to pass some info to c++ obects when the user closes the browser.
how can i implement this event.
i like to use javascript, like <body onunload= javascript function>

but how can i crate the object in the function.

thanks




 
Old April 15th, 2006, 05:48 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 553
Thanks: 0
Thanked 1 Time in 1 Post
Send a message via MSN to vinod_yadav1919 Send a message via Yahoo to vinod_yadav1919
Default

Hi babu!!
 You can not call the server.createobject on client side with onunload event.
Alternatively you can call your specific web page and from that page you can call it(c++) object within the server.
I think you want to trap the browser close button and update some statistic to the server.
following link will help you at some extent.
http://p2p.wrox.com/topic.asp?TOPIC_ID=1774
and also read the trick provided by Imar
hope this will help you

Cheers :)

vinod





Similar Threads
Thread Thread Starter Forum Replies Last Post
Another window.event.srcelement question Ron Howerton Visual Basic 2005 Basics 0 January 16th, 2007 05:09 PM
Detect when window closes, not unload Snib Javascript How-To 11 October 24th, 2006 01:14 AM
Is there an Event for resizing the main XL window? labdad Excel VBA 2 January 6th, 2006 07:23 PM
Interrupting DoCmd.Close & Form Unload Event SerranoG Access 2 November 19th, 2005 03:41 PM
Handling window unload event MurthyGarimella Javascript 2 June 30th, 2004 10:59 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.