perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ilia Lobsanov <i...@lobsanov.com>
Subject Re: Embperl::Form::Validate bug
Date Tue, 12 Nov 2002 00:46:55 GMT
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


Mime
View raw message