Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

jQuery Validation Plugin: How to validate empty fields? -


jquery validation plugin doesn't validate required empty fields until submit clicked. there way validate inline?

i need these fields validate if left empty user tabs through them. inline messages should displayed immeadiately after tabbing out of required field (onblur).

$("form#checkout").validate({     rules: {         nameoncard: { required: true, minlength: 2},         creditcardtype: {required: true},         cardnumber: {required: true, creditcard: true},         confemail: {equalto: "#email" },         firstname: {required:true}     },     messages: {         nameoncard: "enter name on card",         creditcardtype: "select credit card type",         cardnumber: {             required: "please enter credit card number",             creditcard: "not valid credit card number"         }     } }) 

this meant behaviour. purpose annoy user little possible.

source: http://docs.jquery.com/plugins/validation#a_few_things_to_look_for_when_playing_around_with_the_demo

"before field marked invalid, validation lazy: before submitting form first time, user can tab through fields without getting annoying messages - won't bugged before had chance enter correct value"


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -