Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
i'm working on a cgi script which is trying to implement a double drop down menu. basically, one drop down menu has an onChange event handler that populates the other drop down list with different things. i don't want to hardcode the options in the second menu, and i already have perl arrays that contain the options in the different menus. what i need is a way to pass the perl arrays into javascript - how would i do this? (short of trying to fool around with hidden fields)
thanks,
mina.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: passing variables from cgi to javascript
by Ovid (Cardinal) on Sep 18, 2002 at 19:32 UTC | |
|
Re: passing variables from cgi to javascript
by perrin (Chancellor) on Sep 18, 2002 at 20:14 UTC | |
by Anonymous Monk on Sep 18, 2002 at 21:02 UTC | |
|
Re: passing variables from cgi to javascript
by LTjake (Prior) on Sep 18, 2002 at 19:38 UTC | |
|
Re: passing variables from cgi to javascript
by fruiture (Curate) on Sep 18, 2002 at 19:09 UTC | |
by Anonymous Monk on Sep 18, 2002 at 19:39 UTC | |
by fruiture (Curate) on Sep 18, 2002 at 19:48 UTC | |
|
Re: passing variables from cgi to javascript
by newrisedesigns (Curate) on Sep 18, 2002 at 19:25 UTC |