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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

window.open - child closes for no reason

Status
Not open for further replies.

Esoteric

ISP
Feb 10, 2001
93
0
0
US
I have a framed page:
prospect-list.asp

You click an icon window.open('prospect-edit.asp','PEDIT')
works great.

You click another icon window.open('notes-add.asp','NADD')
you click on it, opens fine but the PEDIT window closes. I am at a total loss here.

I have done this before but I just can't recal what I might be doing wrong.

What I need is Parent, child, grandchild

once the grandchild is updated do this:

window.opener.location = '<%=RURL%>'
window.close()

Problem is that stupid window is closing.
 
You have this line.
>[tt]window.close()[/tt]
the child/grandchild window is going to close.
 
No I do NOT have that line in there. That is the code for the grandchild action.
 
If the two line are in the grandchild, the child window will relocate to the page as specified by the server variable RURL read at load time of the grandchild. And then, the grandchild window will close. That is what I would read the lines.

Deviation from that would be caused by other script lines. Any window will be close with somehow/somewhere a .close() method is called. If you find nowhere then you have a problem probably from some service/application in the background.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top