Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Need to close a modal window on timeout

Posted on 2001-08-13
4
Medium Priority
?
306 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 recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
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…
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

618 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