Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: Embperl

Embperl::Form::Validate bug

 

 

ModPerl embperl RSS feed   Index | Next | Previous | View Threaded


ilia at lobsanov

Oct 15, 2002, 8:47 PM

Post #1 of 5 (2022 views)
Permalink
Embperl::Form::Validate bug

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.

ilia.

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe [at] perl
For additional commands, e-mail: embperl-help [at] perl


richter at ecos

Oct 15, 2002, 11:34 PM

Post #2 of 5 (1856 views)
Permalink
Re: Embperl::Form::Validate bug [In reply to]

> 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 [at] ecos Voice: +49 6133 925131
WWW: http://www.ecos.de Fax: +49 6133 925152
-------------------------------------------------------------



---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe [at] perl
For additional commands, e-mail: embperl-help [at] perl


ilia at lobsanov

Nov 11, 2002, 5:46 PM

Post #3 of 5 (1863 views)
Permalink
Re: Embperl::Form::Validate bug [In reply to]

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 [at] ecos Voice: +49 6133 925131
> WWW: http://www.ecos.de Fax: +49 6133 925152
> -------------------------------------------------------------
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe [at] perl
> For additional commands, e-mail: embperl-help [at] perl
>

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe [at] perl
For additional commands, e-mail: embperl-help [at] perl


richter at ecos

Oct 11, 2006, 7:35 AM

Post #4 of 5 (1666 views)
Permalink
RE: Embperl::Form::Validate bug [In reply to]

> Line 362 of Embperl/Form/Validate.pm
>
> my $default_language = $pref -> {default_language};
>
> should be
>
> my $default_language = $pref -> {default_language} ||
> $self->{default_language} ;
>

Yes, this make sense. It's updated in the SVN.

>
> But it doesn't say how one should form the message to take
> advantage of this parameter substitution, not what the
> parameters refer to.
>

Use %1, %2 etc. for first, second, etc. element in the array param
references to.

Gerald




** Virus checked by BB-5000 Mailfilter **


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe [at] perl
For additional commands, e-mail: embperl-help [at] perl


kat_lists at katspace

Oct 11, 2006, 2:00 PM

Post #5 of 5 (1665 views)
Permalink
Re: Embperl::Form::Validate bug [In reply to]

On Wed, Oct 11, 2006 at 04:35:04PM +0200, Gerald Richter wrote:
> > Line 362 of Embperl/Form/Validate.pm
> >
> > my $default_language = $pref -> {default_language};
> >
> > should be
> >
> > my $default_language = $pref -> {default_language} ||
> > $self->{default_language} ;
> >
>
> Yes, this make sense. It's updated in the SVN.

Thanks.

> >
> > But it doesn't say how one should form the message to take
> > advantage of this parameter substitution, not what the
> > parameters refer to.
> >
>
> Use %1, %2 etc. for first, second, etc. element in the array param
> references to.

Okay, but what *are* the elements in the array? What do they refer to?

Kathryn Andersen
--
_--_|\ | Kathryn Andersen <http://www.katspace.com>
/ \ |
\_.--.*/ | GenFicCrit mailing list <http://www.katspace.com/gen_fic_crit/>
v |
------------| Melbourne -> Victoria -> Australia -> Southern Hemisphere
Maranatha! | -> Earth -> Sol -> Milky Way Galaxy -> Universe

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe [at] perl
For additional commands, e-mail: embperl-help [at] perl

ModPerl embperl RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.