Documentation fix

May 28, 2009 at 2:35 PM

When you use jquery validation yuo MUST put the <%= Html.ClientSideValidation.... AFTER the form or the client side validation will not work.

This is because actually the clientside tried to attach events to element that are not yet renededed.

If you put it AFTER the last element to validate all runs fine.

I hope this helps someone.

Manu

May 28, 2009 at 3:16 PM

Thx Manu, I verified that (after an headache...) personally;

And you must include the 3 scripts:

jquery-1.2.6.js

jquery.validate.js

xVal.jquery.validate.js

in masterpage, before everything. Forget that rule by yahoo gurus to put all javascript stuff at the end


Coordinator
Jun 17, 2009 at 9:00 AM

I thought this issue was resolved in the latest source code version, but I'll recheck it and fix if necessary when I do the next set of updates.