in reply to Perl CGI w/ Javascript
Compare the output of your perl script with your working model, and you'll find you are missing an "if" in your javascript:
var o = from.options[i]; if here -> (o.selected) {
I cannot suggest strongly enough that you move towards a templating system (HTML::Template leaps to mind). This will help you to separate the HTML/Javascript logic from the Perl.
Updated:
You are also missing the closing parentheses in your onClick javascript.
...onClick="moveOptions(this.form.available,this.form.selected;" ...onClick="moveOptions(this.form.selected,this.form.available;"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Perl CGI w/ Javascript
by tertullian01 (Acolyte) on Oct 13, 2003 at 22:56 UTC | |
by dragonchild (Archbishop) on Oct 13, 2003 at 23:38 UTC | |
by inman (Curate) on Oct 14, 2003 at 10:59 UTC |