Tech Note: JQuery 1.3 Released

Charles Johnsonfollow me on twitter
Science • Thu Jan 15, 2009 at 10:48 am PST • Views: 162

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 ^

Name:

Pass:

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

Turn off ads by subscribing!
For about 33 cents a day, our subscription option turns off all advertisements at LGF!
Read more...


► LGF Headlines

  • Loading...

► Tweeted Articles

  • Loading...

► Tweeted Pages

  • Loading...

► Top 10 Comments

  • Loading...

► Bottom Comments

  • Loading...

► Recent Comments

  • Loading...

► Tools/Info

► LGF Hits

► 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

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.

We have flipped and are scary now.

TwitterFacebook
LGF Pages
Recent Pages

Randall Gross
Trial opens 2 years after feds break up Christian militia
1 hour, 58 minutes ago
Views: 71 • Comments: 0
Tweets: 0 • Rating: 0

Randall Gross
Obama's budget headed to Congress
2 hours, 12 minutes ago
Views: 91 • Comments: 0
Tweets: 0 • Rating: 0

researchok
Dreyfus and the Birth of Intellectual Protest
5 hours, 1 minute ago
Views: 73 • Comments: 0
Tweets: 0 • Rating: 1

researchok
The Man Who Wouldn't Die: New York's Most Fantastic Murder
5 hours, 4 minutes ago
Views: 99 • Comments: 0
Tweets: 0 • Rating: 3

researchok
Mitt's Spin
5 hours, 6 minutes ago
Views: 69 • Comments: 0
Tweets: 0 • Rating: 0

researchok
Strategy
5 hours, 7 minutes ago
Views: 56 • Comments: 0
Tweets: 0 • Rating: 0

researchok
Gender Wage Gap Skewed by Survey Flaws - Miller-McCune
5 hours, 8 minutes ago
Views: 64 • Comments: 0
Tweets: 0 • Rating: 1

researchok
Why Obama Would Be Glad if the Culture War Is a Major Election Issue
5 hours, 8 minutes ago
Views: 86 • Comments: 0
Tweets: 0 • Rating: 1

researchok
Is This the End of Wall Street as They Knew It?
5 hours, 8 minutes ago
Views: 71 • Comments: 0
Tweets: 0 • Rating: 1

researchok
Prop 8 May Be Same-Sex Couples' Least Worry - Miller-McCune
5 hours, 9 minutes ago
Views: 65 • Comments: 0
Tweets: 0 • Rating: 1

 Frank says:

Children are naive -- they trust everyone. School is bad enough, but, if you put a child anywhere in the vicinity of a church, you're asking for trouble.