validation

11

Click here to load reader

Upload: joren-de-groof

Post on 27-Jun-2015

490 views

Category:

Technology


4 download

TRANSCRIPT

Page 1: Validation

Klik om het opmaakprofiel van de modelondertitel te bewerken

5/13/09

Validatie

Tom Maeckelberghe

Page 2: Validation

5/13/09

Jquery validation

$("#formid").validate({

rules: { lastname: { required : true} }

);PasswordConfirm : {equalTo : “#Password”}• Username: { regex : “^[a-zA-Z0-9_]{3,16}$”}• Email: { email : true }

Page 3: Validation

5/13/09

Jquery validation• Ajax• Custom validatie regels• DRY => Dit laten renderen uit de

validatieregels van het model.

Page 4: Validation

5/13/09

Serverside• Dry• Restful• Railsway

Page 5: Validation

5/13/09

Rails

Page 6: Validation

5/13/09

Page 7: Validation

5/13/09

ASP MVC• Clear separation of concerns • Testability - support for Test-Driven

Development• Fine-grained control over HTML and

JavaScript• Intuitive URLs

Page 8: Validation

5/13/09

Perfect replacement for rails?• NO, ASP MVC is just a good option you

have if you want to devellop an ASP app.– It doesn’t have an answer for everything rails

does

Page 9: Validation

5/13/09

Demo• Booking application with

– Authentication– Validation

Page 10: Validation

5/13/09

Want to know more• www.asp.net/mvc• www.stackoverflow.com

– Community– Q & A – Answer in Max 24 hours

Rails:• http://agilewebdevelopment.com/plugins/client_side_validation

Page 11: Validation

5/13/09

Vragen?