in reply to passing variables from cgi to javascript
just create javascript arrays from the Perl arrays and then write a JS function that will do the neccessary onChange stuff. I can't actually see the (Perl-related) problem. You'll get in trouble if users switch Javascript off.
--//JS also supports multidimensional and associative arrays: foobar = new Array(); foobar['opt1'] = new Array( 'values','of','the second','select','list' +); //...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: passing variables from cgi to javascript
by Anonymous Monk on Sep 18, 2002 at 19:39 UTC | |
by fruiture (Curate) on Sep 18, 2002 at 19:48 UTC |