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

redirect and open a new browser window in cgi

Status
Not open for further replies.

SPrelewicz

Programmer
Jul 16, 2001
124
US
i want to do the following. Call a cgi from a form, process and redirect to the referer page. I can do this fine. However, I want to open a new browser window as a confirmation the form was processed? How can I do this with Perl?

Thanks,

Scott
 
you can't do this with perl, becuase perl is server side and you need the client to do something. How to make the client (browser) jump through hoops? JavaScript.

--jim
 
Thank you for the quick reply.

Okay, cool. So then, before I issue my redirect how can I run the JavaScript from inside the Perl automatically?
 
You can (instead of a redirect) have your CGI generate a blank html page that pops up a javascript window, and does a http-equiv refresh immediately. This will have the same effect as a redirect, but allow to you send content first.

See this link:
--jim
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top