Oct
30
30
Form Validation Engine 1.6 online
This version correct a small bug were when the success function was used, it would not unbind the validation and create a loop upon trying to re-submitting the form. It also add a way to request a true or false validation to the engine without any submit binding. Example:
-
alert($("#formID").validationEngine({returnIsValid:true}))
Grab it in the project page.
3 Comments to “Form Validation Engine 1.6 online”
Leave a comment
Articles
Some Tweets
- browseemall a nice solution for cross-browser testing http://t.co/b9ijFDqp
- Backbone.js 0.9 is kind of a nightmare for me, I see nothing in the changelog that should break my code but, lot of stuff are broken
- jQuery Mobile and backbone.js, the ugly http://t.co/Vi0UJlxe
- Instapaper Founder Marco Arment On The App Business http://t.co/HjiSYwjO
- CSS bug on ie8, only on windows xp, yay me, testing on a decade years old OS
- jQuery Mobile and backbone.js, the ugly http://t.co/Vi0UJlxe









Would love to help work on this code. There are a few minor fixes to the english version, as well as some other validation types that I think would be valuable out of the box.
Feel free to contact me:
http://www.seangw.com/wordpress/
Felicitaciones por tan excelente componente.
Saludos desde Colombia
Hi All,
I wanted to say, “Nice job”. It lives up to your requirements of being fast to implementation and I love the bubbles instead of pushing elements around a layout.
I did however need to add a function to reposition the prompts. I’m using the jquery ui layout plugin and when panes are opened, closed, shown, hidden or a pane is scrolled the validation prompts would not move, but stay stationary. Not good as you can imagine. I needed a function which I could call when resizing or scrolling occurred in the layout. Below is the function I added just in case your interested in implementing some form of it.
repositionPrompt : function(caller) { // Reposition Prompts
var divFormError = $(“div.”+$(caller).attr(“id”) + “formError”);
callerTopPosition = $(caller).offset().top;
callerleftPosition = $(caller).offset().left;
callerWidth = $(caller).width();
inputHeight = $(divFormError).height();
/* POSITIONNING */
if($.validationEngine.settings.promptPosition === “topRight”){
callerleftPosition += callerWidth -30;
callerTopPosition += -inputHeight -10;
}
if($.validationEngine.settings.promptPosition === “topLeft”){
callerTopPosition += -inputHeight -10;
}
if($.validationEngine.settings.promptPosition === “centerRight”){
callerleftPosition += callerWidth +13;
}
if($.validationEngine.settings.promptPosition === “bottomLeft”){
callerHeight = $(caller).height();
callerleftPosition = callerleftPosition;
callerTopPosition = callerTopPosition + callerHeight + 15;
}
if($.validationEngine.settings.promptPosition === “bottomRight”){
callerHeight = $(caller).height();
callerleftPosition += callerWidth -30;
callerTopPosition += callerHeight + 15;
}
$(divFormError).css({
top:callerTopPosition,
left:callerleftPosition
});
return true;
},
Thanks for a great plugin.