• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 309
  • Last Modified:

Need to close a modal window on timeout

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
turbosig
Asked:
turbosig
  • 2
1 Solution
 
Shane_OConnorCommented:
Not possible.... the server cannot close a client window .
0
 
turbosigAuthor Commented:
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
 
turbosigAuthor Commented:
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
 
MoondancerCommented:
Points have been refunded and this question is now moved to the PAQ.

Moondancer
Community Support Moderator @ Experts Exchange
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now