Solved

Need to close a modal window on timeout

Posted on 2001-08-13
4
303 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
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…
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Do you want to know how to make a graph with Microsoft Access? First, create a query with the data for the chart. Then make a blank form and add a chart control. This video also shows how to change what data is displayed on the graph as well as form…

724 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