Posted in October 29, 2009 ¬ 8:57 amh.Chris Richards
$(document).ready(function(){ //Turn all the select boxes into rating controls $(“.rating”).rating(); //Show that we can bind on the select box $(“#serialStar2″).bind(“change”, function(){ $(‘#serialString2′).text( $(‘#serialStar2′).serialize() ); }); }); What An easy to use rating control. It takes a normal select box, and turns it into a rating that your users can click on. The select box is [...]
Read the rest of this entry »
Posted in October 27, 2009 ¬ 9:52 amh.Chris Richards
I want to talk a little bit about scope. Normally, scope is an easy concept, but there are a few little twists and turns in Javascript that make scope more complicated than it would seam. First, some basics.
Read the rest of this entry »
Posted in October 22, 2009 ¬ 8:15 amh.Chris Richards
What: A plugin for jQuery that makes serializing input elements easy. Once serialized you can send the elements back to the server with AJAX. Why: There is a big problem with jQuery’s built in $.serialize() method. It only uses the input elements name attribute. In practice I found that the name attribute is rarely used, [...]
Read the rest of this entry »