Phil,
I'm not sure. It's probably a limitation of the javascript validator
in FarCry.
In my opinion the javascript validator was really cool when first
introduced, but FarCry has already advanced farther than the current
js validator solution can keep up with. Granted, you can override the
validation in FarCry using custom methods (I'm not sure if it's
documented, but Mat showed me once and it was pretty cool, albeit a
little complicated), however I'm curious if anyone would be interested
in replacing the js validation scripts in FarCry with the following
jQuery plugin written by one of the jQuery team members
http://bassistance.de/jquery-plugins/jquery-plugin-validation/
(Documentation here:
http://docs.jquery.com/Plugins/Validation).
I've been using it for a few months in some other projects (non-FarCry
apps) and it's pretty powerful (and extremely easy to implement and
customize).
If interested in the plugin, maybe first take a look at Ray Camden's
experience/tutorials of using the jQuery plugin. It demonstrates how
easily we could customize it to be used with different ftTypes and
even offer things like custom error messages (note: This is actually a
3-part series he wrote. The first part is meant to be simple and
limited to help introduce the plugin before he gets into more
complicated solutions. He even has a few posts he wrote not labeled
as part of the series which talks about using the plugin to do even
more form validation not previously described in the series:
http://www.coldfusionjedi.com/index.cfm/2009/2/9/An-introduction-to-jQuery-and-Form-Validation)
.
Thoughts anyone?...
If I raised this as a feature request in the bug tracker, would people
vote for it, or am I just pushing jQuery plugins on people
again :) ? (I've been known to do that the past several months ever
since I got hooked on jQuery).
--
Jeff Coughlin
Web Application Developer
http://jeffcoughlin.comOn Jul 6, 2009, at 10:51 AM, Phil Kemp wrote:
>
>
> Jeff,
>
> ftIncludeDecimal="true" only solved a small part of this.
>
> In the database I have the value "3000000" which is being displayed
> by the
> form as "3,000,000" - and that, coupled with validate-number crashes
> as a
> comma isn't a number.
>
> How can I stop it automatically formatting the number?
> OR
> Is the a better validation method I can use?
> --
> View this message in context:
http://www.nabble.com/Number-format-validation-issues-tp24323966s621p24356755.html> Sent from the FarCry - Dev mailing list archive at Nabble.com.
>
>
> >
--~--~---------~--~----~------------~-------~--~----~
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email:
farcry-dev@...
To unsubscribe, email:
farcry-dev+unsubscribe@...
For more options:
http://groups.google.com/group/farcry-dev--------------------------------
Follow us on Twitter:
http://twitter.com/farcry-~----------~----~----~----~------~----~------~--~---