Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting Focus after window.close()

Status
Not open for further replies.

audiopro

Programmer
Apr 1, 2004
3,165
GB
I have an HTML form which contains several animated Gif's.
There is a link on the form which launches a contact form within a new window using window.open() - this works ok and the resulting form can be completed is submitted to a PERL script, which generates a reply within the child form. Then
I close the form with a button set up to run function - window.close(). Window closes and shows original calling window but now the animations are frozen and attempting to run the window.open() function results in the following error.
Code:
Line: 1
Char: 1
Error: The callee(not server application) is not available and disappeared; all connections are invalid. The call did not execute.
Code: 0
URL: [URL unfurl="true"]http://.............................[/URL]
It would appear tha the focus is not being passed back to the calling window but I have seen no mention of having to set the focus.
What am I missing?

Keith
 
This would probably be best handled in the Javascript forum

forum216

Make sure you show your JS code that opens the window, too. Copy and paste it from the original, don't type it in.

Lee
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top