Category: ‘JavaScript’
I just stumbled over a really annoying bug in jQuery 1.4.1. Internet Explorer 7 and 8 didn’t fire any change event on my text boxes. At least till one other change event from a radio button or drop down list was triggered before. Fortunately I wasn’t the first one to discover the bug and John has already commited a bugfix to git. So the problem will be gone with version 1.4.2.
If you don’t want to or can’t wait for the next version, you can easily fix your current jquery.js file. Go to line 2255 and look for the beforeactivate function. The if-clause limits the initial data storage for change events to radio buttons. That’s why the other change events won’t be registered in IE. Remove the if-clause and everything will work again.
2255 2256 2257 2258 | beforeactivate: function(e) { var elem = e.target; jQuery.data(elem, "_change_data", getVal(elem)); } |

Impulse Studio Labs has produced the first cheat sheet I’ve found for the new version of jQuery. It’s printer-friendly, fits on one page, marks all the new or changed functions and I don’t think they missed anything important.
I’ve been eagerly waiting for the next update on my favorite JavaScript library, jQuery. I haven’t done any testing, but the list of new features looks very promising:
- Major performance boost for often used functions like
.html(),.remove()or.find(). - You can pass functions now into even more setter functions and their return value will be added to the appropriate attribute.
- Many improvements in handling Ajax calls like support for Etags or auto-detection of
content-type. - Quick element construction similar to
dojo.create. - New events, focusin and
focusout, and a new functionjQuery.proxy()that makes handling this in events easier. - Many many more…