Forum Moderators: open

Message Too Old, No Replies

closing window and returning to site

need help

         

erenshte

11:42 pm on Jul 13, 2004 (gmt 0)

10+ Year Member



Dear experts,

My web site contains a bookmarklet placed in <Links>.
When user is interested in the page he has opened,
he clcks on bookmarklet that opens a window <newwindow> and calls cgi program that captures URL address from the page just visited (let's say <merchant>, creates a form within
new window, places captured URL in one of the text fields of the form, and on submit calls asp
that saves data from the form in a database. Then same asp closes <newwindow> with the form. It also closes it if user clicks <Cancel> on the form.
After that I need to close <merchant> window as well and return to my site for the next search. What I should add to my asp if form is submited, or to cgi script if user cancels the form, to get this working?

Thanks, erenshte

Krapulator

1:10 am on Jul 14, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Add the following line after the code that inserts the details into the db.

response.write "<script type=""text/javascript"">window.close();</script>"