peacemaker1820 has asked for the wisdom of the Perl Monks concerning the following question:
Hello monks!
I am trying to connect to my database while the user is filling out the form. It works as such: the user fills out a text box, without submitting the form, I would like to have a pop up window from where the user can have more options that are coming from a database.
Here is my code:
IN HTML I HAVE:
Thus, as you can see in Perl I am printin the result of what i have got. The result on page that I get is UNDEFINED.
What am I doing wrong?
Thanks Monks I am out of guesses!
I am trying to connect to my database while the user is filling out the form. It works as such: the user fills out a text box, without submitting the form, I would like to have a pop up window from where the user can have more options that are coming from a database.
Here is my code:
IN HTML I HAVE:
IN JAVASCRIPT I HAVE:<input type="text" name="textBox" size="8"> <a href="javascript:priceList('form.textBox.value');">Price List</a>
IN PERL I HAVE:function priceList(text){ win=window.open("cgibin/getPrice.pl?textBox="+text,"","width=250,heigh +t=240") win.creator=self }
use CGI; $q = new CGI; $partNumber = $q->param('textBox'); print ($partNumber);
Thus, as you can see in Perl I am printin the result of what i have got. The result on page that I get is UNDEFINED.
What am I doing wrong?
Thanks Monks I am out of guesses!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Retrieving value from HTML->Javascript->Perl
by Speedy (Monk) on Jul 05, 2002 at 23:16 UTC | |
Re: Retrieving value from HTML->Javascript->Perl
by dws (Chancellor) on Jul 05, 2002 at 22:06 UTC | |
Re: Retrieving value from HTML->Javascript->Perl
by George_Sherston (Vicar) on Jul 05, 2002 at 21:35 UTC | |
Re: Retrieving value from HTML->Javascript->Perl
by TexasTess (Beadle) on Jul 07, 2002 at 00:04 UTC | |
by dws (Chancellor) on Jul 07, 2002 at 00:30 UTC | |
by TexasTess (Beadle) on Jul 07, 2002 at 00:52 UTC |
Back to
Seekers of Perl Wisdom