This topic is locked

Pop up window

10/12/2009 10:42:00 AM
ASPRunnerPro General questions
L
luic author

I add a new pop up window to add records. After the record is saved, I want the pop window to close after record saved. I added the code to the after record add event with the following javascript :
Response.write "<HTML><HEAD></HEAD>"

response.write "<BODY onload=""window.close(); window.opener.location.reload(true);"">"

response.write "</BODY><HTML>"
The above works in asprunner 6.0 but in asprunner 6.1, this takes no effect. The pop up window remains open with the message record is added. It is supposed to be close automatically.
Can you tell me why?
Thanks.
Chris.

J
Jane 10/13/2009

Chris,
try to use this one:

flush_output

Response.write "<HTML><HEAD></HEAD>"

response.write "<BODY onload=""window.close(); window.opener.location.reload(true);"">"

response.write "</BODY><HTML>"