Possible JavaScript?

M

mti07

I have a situation where I would like to use JavaScript w/ ASP.NET,
however I am not sure if what I want to do is possible.

I have a web application that can deploy multiple windows. Basically,
When a window times out, if it has a parent window, I need to either
close that parent window or redirect that parent window to another
page. The parent window in most cases was created with javascript,
however I do have an instance where the parent window was not created
with javascript.

Is this even possible to do?

Thanks
 
E

Erwin Moller

mti07 said:
I have a situation where I would like to use JavaScript w/ ASP.NET,
however I am not sure if what I want to do is possible.

I have a web application that can deploy multiple windows. Basically,
When a window times out, if it has a parent window, I need to either
close that parent window or redirect that parent window to another
page. The parent window in most cases was created with javascript,
however I do have an instance where the parent window was not created
with javascript.

Is this even possible to do?

Thanks

Hi,

Try something like this:
Let the 'pop-up' windows time-out, eg by counting the seconds the page has
no interaction, and when that period is over, they can send a signal to the
parent, using opener-keyword.
eg: in popup:
// timeout occured
opener.ITimedOut("popup12");

Then let the opener simply close itself or whatever suits your needs
(reload).
But remember that windows that are NOT opened by JS will not close by a JS
window.close(); command. Or at least ask it to the human first. ;-)

Regards,
Erwin Moller
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,160
Messages
2,570,889
Members
47,423
Latest member
henerygril

Latest Threads

Top