DCSIMG
July 2011 - Posts - Client-Side with Basil Goldman

July 2011 - Posts

20 July 2011
radio button - jQuery .change() event not working in IE 6, 7
IE < 8 Hack for radio button jQuery .change() event. /* * hack for radio button change event * @author : basil.goldman@gmail.com */ if ($.browser.msie && $.browser.version < 8) { $( 'input[type=radio],[type=checkbox]' ).live( 'click' , function () { $( this ).trigger( 'change'... Read More...
20 July 2011
Javascript "object or function?"
Hi all, See below example, how to make your javascript code sexy. If you call --> getTimeStamp as variable, return object of the Date.now, but if you call --> getTimeStamp() as function, return a timestamp value. var getTimeStamp = Date.now || function () { return +( new Date).getTime(); }; Best... Read More...