cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 32419] - [patch] client side validation for CForms
Date Mon, 20 Dec 2004 17:54:43 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=32419>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=32419





------- Additional Comments From benanderson.us@gmail.com  2004-12-20 18:54 -------
I tried to get validation going with the above files, but had to tweak the js a
little.  I'm just pasting this patch inline because there's not much to it.

26c26,28
<   var field = validation_form.elements[ iName ];
---
>   //var field = validation_form.elements[ iName ];
>   // For some reason firefox doesn't like the above statement.
>   var field = document.forms[0].elements[ iName ];
75,76c77,79
<   var dateType = validation_widgets[iWidget];
<   if( datatype == "integer" || iDatatype == "long" )
---
>   var datatype = validation_widgets[iWidget];
>   alert(datatype);
>   if( datatype == "integer" || datatype == "long" )
82c85
<   else if( datatype == "double" || iDatatype == "decimal" )
---
>   else if( datatype == "double" || datatype == "decimal" )
157c160
<     return;
---
>     return false;
159c162
< }
\ No newline at end of file
---
> }

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Mime
View raw message