Solved

Need to close a modal window on timeout

Posted on 2001-08-13
4
297 Views
Last Modified: 2008-03-10
I have a modal window (in IE).  I need to be able to automatically close the window if the script time's out or errors out.  

The modal window is hidden from the user, so I can not rely on them.

I need this to be VBScipt, NOT Javascript.

Thanka,
Chris
0
Comment
Question by:turbosig
  • 2
4 Comments
 
LVL 1

Expert Comment

by:Shane_OConnor
ID: 6380920
Not possible.... the server cannot close a client window .
0
 
LVL 2

Author Comment

by:turbosig
ID: 6381207
Actually it is possible, I just figured it out.  You can actually use <%@language="vbscript" TRANSACTION=required %>, and trap the ASP 0113 error using MTS, then run a sub calling "document.parentWindow.parent.window.close"

Thanks,
Chris
0
 
LVL 2

Author Comment

by:turbosig
ID: 6381519
OOps, I meant I was wanting to close it client side.  Your right, it can not be closed server side, but the error can be trapped.
0
 
LVL 1

Accepted Solution

by:
Moondancer earned 0 total points
ID: 6381614
Points have been refunded and this question is now moved to the PAQ.

Moondancer
Community Support Moderator @ Experts Exchange
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Suggested Solutions

Have you ever needed to get an ASP script to wait for a while? I have, just to let something else happen. Or in my case, to allow other stuff to happen while I was murdering my MySQL database with an update. The Original Issue This was written…
This demonstration started out as a follow up to some recently posted questions on the subject of logging in: http://www.experts-exchange.com/Programming/Languages/Scripting/JavaScript/Q_28634665.html and http://www.experts-exchange.com/Programming/…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now