Solved

Need to close a modal window on timeout

Posted on 2001-08-13
4
302 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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

733 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