Search
Calendar
February 2012 M T W T F S S « Aug 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 Categories
Category Archives: Javascript
Unobtrusive javascript with Rails 2.3.5
This is my handy little bit of javascript to make it easier to do UJS in Rails 2.3.5. Create a file within your public/javascripts folder called ajax.js containing the following: //unobtrusive javascript replacements //setup for format.js block $.ajaxSetup({ ‘beforeSend’: function(xhr) … Continue reading
Posted in Development, Javascript
Tagged 2.3.5, Javascript, rails, ruby, ujs, unobtrusive
Leave a comment
IE fixed width select input bug
IE truncates options within a select if the options are longer than the width of the select control. Somehow EVERY OTHER BROWSER manages to expand the options while keeping the select at the fixed width, another reason why ie sucks!!! … Continue reading
Posted in Development, Javascript
Leave a comment
jQuery storing data in a tag using internals
I had a problem where I needed to store the old name of an input tag so that I could reference what it used to be called. I used the rel attribute to store this (as is common practice) but … Continue reading
Posted in Development, Javascript
Leave a comment