Sep 29th, 2009, 5:51 PM
(Jul 4th, 2009, 11:02 AM)Ben Wrote: Hey Terry,
Sorry - I can see why this is leading to confusion. I actually made a couple of modifications to the rsv.js script that's bundled with Form Tools to reduce the amount of redundancy in my own code. Form Tools uses RSV on virtually every page, and in most cases uses a custom error handler (the rsv.customErrorHandler option) to display the error messages in the page. This has been hardcoded into the rsv.js file, so it won't work unless you explicitly override it to null in your own pages.
I documented what you'll need to do in this tutorial:
http://docs.formtools.org/tutorials/js_v...ed_product
Namely, these three lines:
Code:// these lines are required if you're using the rsv.js file that's bundled with Form Tools.
// They reset the custom handlers defined in the file
rsv.errorFieldClass = null;
rsv.customErrorHandler = null;
rsv.displayType = "alert-all";
But that *really* isn't very clear.... erk! I'll put a big proviso on the first page of the tutorial to make this clearer.
Sorry, guys.
- Ben
Ben,
Your tutorial is flawless ...but I'm in the same trouble as Terry above and the OP: I'm following your instructions to the letter, yet JS validation is simply not working. No errors... it's simply not coming into play.
Like Terry, I resolved the problem with a simple workaround: I downloaded the standard version of RSV from BenjaminKeen.com and put it to work independently from the rsv file bundled with FT ...and voila! Trouble-free validation!
Please take a look at the bundled version for the source of the trouble we're having.
Jim