Link to home
Start Free TrialLog in
Avatar of chaitu chaitu
chaitu chaituFlag for India

asked on

pop up window should be displayed on top of parent window if the user session timed out or closes browser window

My requirement is as follows.

pop up window should be displayed on top of parent window.
in the pop window 3 input text fields and 3 buttons should be displayed.

above functionality should work in the following conditions.

1)when session times out.

In this requirement my doubt is how do i know that session is timed out from client side perpective because we set the session time out at server-side.upto 20 mins if user is idle then this pop up window should be displayed.

2)when user closes the brower or click X button.even though i used onbeforeunload or onunload functions its not working properly.

3)when user wants to move to other site.

to deeper the problem this functionality should work in all major browsers.

For your information Presently application is designed in such a way that above top frame ,middle frame and botton footer is there.
ASKER CERTIFIED SOLUTION
Avatar of mwochnick
mwochnick
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of chaitu chaitu

ASKER

llittle bit modification to my first requirment.after 20 mins pop up should come.so i can hard code it with 20 mins in setTimeOut function.this pop up should overlay on parent window.how to grey out the parent window page when pop up overlay will be displayed..

for browser back button or close button i think need to use onbeforeunload function.
when  user uses browser back button or close button also this pop up window overlay should come
so what technologies does the current application use?
What javascript libraries are being used or preferred to be used?
what have you done? and what specific problems are you having trying to meet your requirements above?  
so what technologies does the current application use?
struts,jquery
What javascript libraries are being used or preferred to be used?
jquery
what have you done? and what specific problems are you having trying to meet your requirements above?
i need overlay on the parent page after 20 mins then the parent page should be faded,...
Have you looked at the first url I listed in my first post? it has instruction and a demo page where you can get working code