information architecture & critical history of software (PhD research) in Toronto

view my cv

Quinn DuPont studies the critical history of software technologies, focusing on metaphysical, historical, and political issues. He has recently been studying the history of email and developing an argument about the modes of production for software development. Quinn is currently a MITACS Enhanced Accelerate PhD Fellow and iSchool PhD student in Toronto, Canada.

search
reading
  • Difference and Repetition
    Difference and Repetition
    by Gilles Deleuze
  • From Taylorism to Fordism: A Rational Madness
    From Taylorism to Fordism: A Rational Madness
    by Bernard Doray
  • Questioning Technology
    Questioning Technology
    by Andrew Feenberg
« Economics standing in for politics: China | Main | What is OOO? (tip: not a computer programming methodology) »
Friday
Dec112009

Easy email validation with jQuery

jQuery is an excellent Javascript framework/library that makes complicated things simple (simple enough for a Javascript punter like myself to use).

Recently I found a need for email validation on a form. The form is a fancy AJAX form, that was giving me troubles with preSubmit callbacks and the like. I tried a heavyweight validation plugin for jQuery, which worked, but was too complicated for my simple needs. In the end I went with regular expression validation and merely disabled the submit button if the validation failed. The full instructions are here, but here’s (a snippet of) my implementation:

Reader Comments (1)

http://www.ex-parrot.com/pdw/Mail-RFC822-Address.html

December 11, 2009 | Unregistered CommenterHere's the regex you need:
Comments for this entry have been disabled. Additional comments may not be added to this entry at this time.