Forum Moderators: coopster & phranque

Message Too Old, No Replies

Storing an event in a variable

         

dreaming of nascar

9:10 pm on Apr 24, 2005 (gmt 0)

10+ Year Member



I have a form that has a drop down list in it. When the user selects an option from the drop down list, I want to put the value of what the user selected into a variable so I can then use it to do other things. I can capture the value using javascript, but am unable to put the captured javascript value into a perl variable. Is there a way in perl to capture events such as this or does anyone here know how to put the result of a javascript event into a perl variable. I am wanting to capture the value without a button that reloads the page if possible. I am looking for a way that gets the value right when the value is selected. Any help would be greatly appreciated. Thanks in advance!

DON

wruppert

12:11 pm on Apr 25, 2005 (gmt 0)

10+ Year Member



What you are describing sounds like what is recently being called AJAX. See [en.wikipedia.org...] and
[xml.com...]

This technique involves using javascript and XMLHttpRequest to have the web page communicate with the server in the background. Google uses it a lot. I haven't tried it yet myself.