Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Retrieving value from HTML->Javascript->Perl

by dws (Chancellor)
on Jul 05, 2002 at 22:06 UTC ( [id://179751] : note . print w/replies, xml ) Need Help??


in reply to Retrieving value from HTML->Javascript->Perl

The result on page that I get is UNDEFINED.

I'm not clear on whether you're getting a 404 page in the popup, or whether the CGI is producing empty results.

If the former, I suspect you have a problem with this line   win=window.open("cgibin/getPrice.pl?textBox="+text, Typically, the CGI directory is named "cgi-bin", not "cgibin". Double-check this. Also, you might have better luck using a fully qualified URL. E.g.,   win=window.open("http://www.example.com/cgi-bin/getPrice? ...