rashley has asked for the wisdom of the Perl Monks concerning the following question:
I know I can use -onsubmit to call a JavaScript to go and do something.
Can I call a JavaScript that returns a value, and assign that value?
For instance:
my button = button(-name=>'Name', -value=>'Value', -onclick=>"return dosomtehing()", -onsubmit=>$Hash->{VALUE}="return getsomething()");
The syntax above for that last line doesn't work. Can this even be done? Thanks.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Assigning a value from JavaScript onSubmit in CGI
by Anonymous Monk on Nov 16, 2006 at 17:52 UTC | |
by rashley (Scribe) on Nov 16, 2006 at 17:55 UTC | |
|
Re: Assigning a value from JavaScript onSubmit in CGI
by BaldPenguin (Friar) on Nov 16, 2006 at 17:57 UTC | |
by rashley (Scribe) on Nov 16, 2006 at 18:08 UTC | |
|
Re: Assigning a value from JavaScript onSubmit in CGI
by rashley (Scribe) on Nov 16, 2006 at 19:48 UTC |