This feature is not activated by using attributes on the input element. For example, the following is
incorrect as it will produce non-validating HTML / XHTML:
We're considering using the HTML5 data-* attributes to specify this so that you don't have to drop down to Javascript to activate this feature, but we haven't finalized plans around this yet.
Marked as answer by tomer77 on Apr 01, 2010 06:37 PM
Tomer77
Member
25 Points
7 Posts
Bug in Sys_Mvc_FormContext$_form_OnSubmit
Apr 01, 2010 06:49 AM|LINK
This function dont work well on chrome browser.
doing submitButton.disableValidation is not supported in chrome as you cant access custom property on html elemtn this way.
what you need to do is submitButton.getAttribute("disableValidation") instead.
Also, having upper case letter in html attribute is not supported by the standard.
How can this get fixed?
Thanks, Tomer.
levib
Star
7702 Points
1099 Posts
Microsoft
Re: Bug in Sys_Mvc_FormContext$_form_OnSubmit
Apr 01, 2010 04:45 PM|LINK
This feature is not activated by using attributes on the input element. For example, the following is incorrect as it will produce non-validating HTML / XHTML:
<input type="submit" id="theSubmitButton" disableValidation="true" />
The correct way to activate the feature is to get the DOM element corresponding to the submit button and set an expando on it:
document.getElementById("theSubmitButton").disableValidation = true;
We're considering using the HTML5 data-* attributes to specify this so that you don't have to drop down to Javascript to activate this feature, but we haven't finalized plans around this yet.