Snitz Forums 2000
Snitz Forums 2000
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Community Forums
 Code Support: ASP (Non-Forum Related)
 onUnload
 New Topic  Topic Locked
 Printer Friendly
Author Previous Topic Topic Next Topic  

SaiyanJin
Junior Member

115 Posts

Posted - 02 March 2001 :  23:21:09  Show Profile
When the current window, which is a frame is closed, I want it to execute a asp function.

I tried:
Private sub delete_Unload()
blah blah

end sub

<body onUnload="<%delete%>">

but it doesn't work. Help?

ljy
Starting Member

5 Posts

Posted - 03 March 2001 :  02:57:23  Show Profile
quote:

When the current window, which is a frame is closed, I want it to execute a asp function.

I tried:
Private sub delete_Unload()
blah blah

end sub

<body onUnload="<%delete%>">

but it doesn't work. Help?





Go to Top of Page

Doug G
Support Moderator

USA
6493 Posts

Posted - 03 March 2001 :  11:06:38  Show Profile
I don't think you can accomplish what you want to do. After the server has sent the HTML to the client, the connection is disconnected until the client browser submits another request to the server.


======
Doug G
======
Go to Top of Page

SaiyanJin
Junior Member

115 Posts

Posted - 04 March 2001 :  20:26:55  Show Profile
What is another way of doing it?

Go to Top of Page

davemaxwell
Access 2000 Support Moderator

USA
3020 Posts

Posted - 04 March 2001 :  23:27:58  Show Profile  Visit davemaxwell's Homepage  Send davemaxwell an AOL message  Send davemaxwell an ICQ Message  Send davemaxwell a Yahoo! Message
Using javascript perhaps? Like those annoying pop-ups which appear when you try to close out a porn site you reached inadvertently....

Try hotscripts.com. They might have a similar set of code.....

Dave Maxwell
--------------
Proud to be a "World Class" Knucklehead
Go to Top of Page

festerhead
Starting Member

USA
30 Posts

Posted - 25 March 2001 :  17:38:12  Show Profile  Visit festerhead's Homepage
You could try something like
<frameset cols="*,150" frameborder="1" onUnload="window.open('gotopage.asp')">

Then execute the function on the gotopage.asp. When the function is over, use this code
response.write "<script language=JavaScript>"
response.write "if (top != self) {"
response.write "top.location = location"
response.write "}"
response.write "window.close()"
response.write "</script>"

to close the gotopage.asp

"Our great computers fill the Hallowed Halls."
- RUSH 2112
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Topic Locked
 Printer Friendly
Jump To:
Snitz Forums 2000 © 2000-2021 Snitz™ Communications Go To Top Of Page
This page was generated in 0.3 seconds. Powered By: Snitz Forums 2000 Version 3.4.07