Re: How to select from a popup_menu without clicking submit?

[email protected] (Anagram)
Newsgroups perl.beginners.cgi
Organization http://groups.google.com
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.