You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Ilia Lobsanov <il...@lobsanov.com> on 2002/11/12 01:46:55 UTC

Re: Embperl::Form::Validate bug

Gerald,

the JS code for Radio would go something like this:

for ( var i = 0; i < radio_element.length; i ++ ) {
  if ( radio_element[i].checked ) return true;
}

the JS code for Select would go something like this:

if ( select_element.selectedIndex != 0 ) return true;


ilia.

On Wed, Oct 16, 2002 at 08:34:34AM +0200, Gerald Richter wrote:
> 
> 
> > there seems to be a bug in the way Embperl::Form::Validate generates the
> > client-side javascript code for the radio inputs. The JS code is using
> > "value" property, which is not accurate for a Radio object.
> >
> 
> Yes, radio buttons not supported so far, since they have to be handled
> totaly different in JS.
> 
> If you have any ideas how the JS code should look like, let me know
> 
> Gerald
> 
> -------------------------------------------------------------
> Gerald Richter    ecos electronic communication services gmbh
> Internetconnect * Webserver/-design/-datenbanken * Consulting
> 
> Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
> E-Mail:     richter@ecos.de         Voice:    +49 6133 925131
> WWW:        http://www.ecos.de      Fax:      +49 6133 925152
> -------------------------------------------------------------
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org