473,387 Members | 1,678 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

CLASSIC ASP VBscript Detecting when a session is abandoned.

G
Hello,

I want to launch a pop-under survey when a user leaves my page by closing
the window, but NOT by leaving the page via a hyperlink or form submission.

Is this easy to accomplish with ASP?

Thanks in advance,

G.
Jul 19 '05 #1
2 2090
"G" <no**********@here.com> wrote in message
news:c3*******************@news.demon.co.uk...
Hello,

I want to launch a pop-under survey when a user leaves my page by closing
the window, but NOT by leaving the page via a hyperlink or form submission.
Is this easy to accomplish with ASP?

Thanks in advance,

G.


What about if they leave by typing a url?

ASP is server side code and therefore executed before the page is returned
to the client. You **might** be able to do what you want using client-side
javascript.

--
John Blessing

http://www.LbeHelpdesk.com - Help Desk software priced to suit all
businesses
http://www.free-helpdesk.com - Completely free help desk software !
http://www.lbetoolbox.com - Remove Duplicates from MS Outlook
Jul 19 '05 #2

"John Blessing" <jb@**REMOVE**THIS**LbeHelpdesk.com> wrote in message
news:%k******************@newsfep4-glfd.server.ntli.net...
"G" <no**********@here.com> wrote in message
news:c3*******************@news.demon.co.uk...
Hello,

I want to launch a pop-under survey when a user leaves my page by closing the window, but NOT by leaving the page via a hyperlink or form

submission.

Is this easy to accomplish with ASP?

Thanks in advance,

G.


What about if they leave by typing a url?

ASP is server side code and therefore executed before the page is returned
to the client. You **might** be able to do what you want using client-side
javascript.


this is quite tricky because there are so many possible ways to manipulate
browser windows,

you can detect if a window is being closed usign JavaScript, on which you
could launch a tiny popup window to do whatever it is you want to be doing
whan a user exits your site...

but,
what if a user opens a second instance of your site by right-clicking a link
and selecting "browse in new window", and then closes the first window a few
minutes later, while the second one is still used...
Jul 19 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

99
by: Jim Hubbard | last post by:
It seems that Microsoft not only does not need the classic Visual Basic developer army (the largest army of developers the world has ever seen), but now they don't need ANY Windows developer at a...
6
by: ASPfool | last post by:
Hello everyone, Please help me before I throw my computer out of the window: I'm working on a web application in classic ASP (vbscript), which is making calls to some webservices. The calls...
4
by: Chris Newby | last post by:
My project currently requires that I integrate an ASP.NET application with an ASP application. One of the issues I'm having is that I have some very long strings being created in an ASP.NET...
2
by: Frank | last post by:
Can I do this? I add a session var in C# and ultimatly want to pass it into a vbscript client side activeX control. This is what I have so far but get " Object Required:'name2' " error. Can...
5
by: Kent.Gallinger | last post by:
I have a web application that contains asp.net and classic asp pages. I have a vb.net function that I would like to use in one of the classic asp pages. How can I do this? Can I do this? ...
1
by: Dennis | last post by:
my company has a large web site written in old asp, vbscript, and a little javascript. I am trying to convert it over to ASP.NET C# as we add new features instead of having to write the new...
4
by: thig95 | last post by:
Hi, I've got a web application written in ASP class with VBScript. We have a home grown conctact management system for my company that our users stay active in throughout the day. My problem lies...
3
by: Sems | last post by:
Hi I'm using the Session_End event in the global.asax to detect if a users sessions has ended. Is there any way to tell if the session end is due to it being expired and not abandoned? I'm...
11
by: Jan T. | last post by:
I wonder if anybody know a web site that has a good tutorial on this subject. What I want to do, is make a log in Page, and make sure that all my pages is validating that the user is loged in...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.