Thursday, April 17, 2008

Front end fun - LiveValidation & mooSwitch

Being a back end developer means that most of the time I don't get to do anything fun on the front end (well.. that's relative since I don't really like doing front end stuff). Recently I've been spending a lot more time using AJAX for pages that I don't want to reload. Initially I wasn't liking it one little bit, but now I've come to not mind it so much. Especially since I really don't have to write much in the way of Javascript, except to use it to capture a click and send the data to PHP.

I found two very neat new add ons to use in my forms. One of the I was completely blown away by how simple it is to implement: Live Validation
Their website is very straight forward, and using the functions is incredibly easy. All the examples work, and show you specifically what to add to your forms to use. Right now I'm using the email validation, and the password matching validation. I will continue to do server side form validation, but this is going to make my forms so much more user friendly!

The other is called mooSwitch. In a new form design, the designer wanted the radio buttons to appear as a small toggle/slider. I googled what I was looking for, and this one came up. Within a few minutes, I had my radio buttons being sliders. It does require mootools, but the front end developer is using that already, so no worries.

I've been doing a ton of development recently, but I'll break up my posts over a few days to spread the topics.

Cheers!

No comments: