MicrosoftMvcJQueryValidation.js Used by ASP.NET MVC 2 for client-side validation.
Problems with this file just do not work properly and are wondering if I have the wrong version.
The version I'm using came from a source for futures.
MicrosoftMvcJQueryValidation.js
5,626 bytes
11/17/09 10:43:12am
There are two reasons why I think I have the wrong version:
1) I really need to call this code to generally work with the verification procedure. This is due to the fact that now the default client validation function built into FormContext.csis Sys.Mvc.FormValidation.enableClientValidation.
ViewContext.FormContext.ClientValidationFunction = "EnableClientValidation";
2) There is some code from jquery.validate.js that performs the following operations:
this.settings.errorPlacement
? this.settings.errorPlacement(label, $(element) )
: label.insertAfter(element);
This calls this function in MicrosoftMvcJQueryValidation.js:
errorPlacement: function(error, element) {
var messageSpan = fieldToMessageMappings[element.attr("name")];
$(messageSpan).empty();
$(messageSpan).removeClass("field-validation-valid");
$(messageSpan).addClass("field-validation-error");
error.removeClass("input-validation-error");
error.attr("_for_validation_message", messageSpan);
error.appendTo(messageSpan);
},
, jQuery.validate jQuery $(element).
, element.attr("name") - undefined, element[0].attr("name") .
MicrosoftMvcJQueryValidation.js Microsoft.
`
MicrosoftMvcJQueryValidation, , . - ?