LMPX.COM |
Home | Linux | Mysql | PHP | XML | ||
|
|
|||
From: Anagram Date: Fri Jan 25 12:27:52 2008 Subject: Re: How to select from a popup_menu without clicking submit?
Marcus - Definitely easiest way is to handle that in JavaScript. Somewhere in your perl you will embed a few useful JavaScript functions to be passed down on the completed page. But you cannot point the JavaScript to the perl event; it just doesn't work that way. You can however use JavaScript to edit the page after it is already loaded & rendered. So from here your questions are really JavaScript questions, but here are a couple of pointers: you will need to make use of the "onChange" event for your popump list, as you suspected, but point it to a JavaScript function that uses (the magic beans...) HTML DOM (via getElementby functions) and then actually editing element contents with the innerHTML attribute. For further reading: http://www.devguru.com/technologies/javascript/ http://www.w3schools.com/js/default.asp http://www.tizag.com/javascriptT/javascript-innerHTML.php - Anagram
| Navigate in group perl.beginners.cgi at sever nntp.perl.org | |
| Previous | Next |
| © No Copyright You are free to use Anything |
Site Maintained by PHP Developer
Powered By PHP Consultants |