Does anyone know how I can remove all generated errors using ValidationEngine with a single command? I added a code snippet that the plugin apparently uses to create pop-ups. If you need more information, please let me know.
The following code generates errors:
buildPrompt : function(caller,promptText,type,ajaxed) { // ERROR PROMPT CREATION AND DISPLAY WHEN AN ERROR OCCUR if(!$.validationEngine.settings){ $.validationEngine.defaultSetting() } deleteItself = "." + $(caller).attr("id") + "formError" if($(deleteItself)[0]){ $(deleteItself).stop(); $(deleteItself).remove(); } var divFormError = document.createElement('div'); var formErrorContent = document.createElement('div'); linkTofield = $.validationEngine.linkTofield(caller) $(divFormError).addClass("formError") if(type == "pass") $(divFormError).addClass("greenPopup") if(type == "load") $(divFormError).addClass("blackPopup") if(ajaxed) $(divFormError).addClass("ajaxed") $(divFormError).addClass(linkTofield); $(formErrorContent).addClass("formErrorContent");
Source code: http://www.position-absolute.com/articles/jquery-form-validator-because-form-validation-is-a-mess/
Problem. When a user has errors on his screen and clicks a link that scrolls to another part of the page, the errors remain in the absolute position.
What I'm looking for: a function that deletes ALL error messages can be more than one.
Aeonius
source share