LGF

more options

  

Advertisement

Tech Note: JQuery 1.3 Released

Science | Thu, Jan 15, 2009 at 10:48:17 am PST

Gifts for geeks! A major update for the indispensable Javascript library jQuery has been released into the wild: jQuery 1.3 and the jQuery Foundation. They’re claiming some big speed improvements and other nice enhancements; full details are in the release notes. And they’ve also unveiled a great Ajax-based API browser, setting a new standard for API documentation. Kudos to the jQuery team for some excellent work.

We’ve installed the new version at LGF and had only one problem so far, which is a bit amazing considering that the LGF Blog Engine contains quite a lot of jQuery-based Javascript code and uses half a dozen plugins.

The problem occurred in both Internet Explorer and Firefox 3 (but strangely, not in Safari), and was tracked down to the following code, which refreshes any currently visible “spinoff links” after a successful login:

The first expression was causing script timeouts in IE and Firefox. The Firebug debugger revealed that jQuery was entering an infinite loop when trying to process the expression, even with no visible spinoff links.

After more experimentation, we concluded that jQuery 1.3 has some bugs lurking in the new implementation of the “:not” selector. In this case there's a simple fix that doesn't affect functionality: use the “:visible” selector instead.

But in other sections where we really needed the NOT functionality, we had to change the code to use jQuery's "not" method instead of the selector. For example, this:

...had to be changed to this:

After these changes, everything seems groovy in all the major browsers on both Mac and PC. But please let us know if you discover anything that isn’t working right.

Advertisement

97 comments

^ back to top ^

log in
Name:
Pass:

Register Forgot Your Password? My Account Re-send Confirmation (To log in, cookies must be enabled in your browser!)

► LGF Headlines

► Top 10 Comments

► Bottom Comments

► Recent Comments

► Tools/Info

► LGF Hits

► Slideshows

► Resources

► Never Forget

► Statistics

► Tag Cloud

► Contact

You must have Javascript enabled to use the contact form.
Your email:

Subject:

Message:


Messages may be published in our weblog, unless you request otherwise.
Tech Note:
Using the Contact Form

► News/Opinion

Apple iTunes
More Partners

Compare Electricity Prices in your area. Texas Electricity is deregulated; you have the right to choose Texas Electric Rates from among many Texas Electric Companies.

Disprove this if you don't agree!