Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Merging Perl/JS

by rbc (Curate)
on Sep 23, 2002 at 19:24 UTC ( #200205=note: print w/replies, xml ) Need Help??


in reply to Merging Perl/JS

Please excuse me if this solution does not make any sense
as I do not do a lot of web development and my Javascript
is a bit rusty. But it would seem that you need to have your
onChange() javascript function do a something like this ...
function myOnChange(s) { var o = s.options[s.selectedIndex]; var t = o.text; document.location = "whatever?setButtonTo="+t; }
where whatever?setButtonTo is a cgi that will re-write
your form with the appropirate value for its submit button.

Hope that helps :)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://200205]
help
Chatterbox?
[Discipulus]: Seekers of Perl Wisdom is the for asking question
[Discipulus]: be sure to use code tags for code and data
[Discipulus]: and to show some effort while asking
[Discipulus]: <code> code and data</code>
[Discipulus]: amitkumarj441 more atention you put asking, more attentio you got in answers
Discipulus 's hoping he needs a oneliner ;=)

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2017-04-26 20:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (488 votes). Check out past polls.