jQuery 1.3 released

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

jQuery 1.3 released

Post by Christopher »

To all you jQuery maniacs around here...

http://blog.jquery.com/2009/01/14/jquer ... oundation/
(#10850)
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: jQuery 1.3 released

Post by jaoudestudios »

Cool, thanks for the heads up :)

Can we replace our older versions with the new one? Or will it break?
User avatar
daedalus__
DevNet Resident
Posts: 1925
Joined: Thu Feb 09, 2006 4:52 pm

Re: jQuery 1.3 released

Post by daedalus__ »

happy news. im gonna check it out. thanks arborint
User avatar
Eran
DevNet Master
Posts: 3549
Joined: Fri Jan 18, 2008 12:36 am
Location: Israel, ME

Re: jQuery 1.3 released

Post by Eran »

It's been in the works for a while now. A new selector engine that supposedly much faster and some other nice improvements. Kudos to the jQuery team for constantly pushing the envelope.
User avatar
daedalus__
DevNet Resident
Posts: 1925
Joined: Thu Feb 09, 2006 4:52 pm

Re: jQuery 1.3 released

Post by daedalus__ »

i took a look at the update page. apparantly they improved the spped of a lot of things as well as cross browser compatibility. some of the updates make my life much easier and im very happy
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: jQuery 1.3 released

Post by pickle »

Been waiting for this forever - thanks for the heads up.

Edit: As a nice corollary, they've created http://api.jquery.com - a nice API browser for jQuery
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Re: jQuery 1.3 released

Post by Chris Corbyn »

Awesome, thanks for the heads up :)
User avatar
volomike
Forum Regular
Posts: 633
Joined: Wed Jan 16, 2008 9:04 am
Location: Myrtle Beach, South Carolina, USA

Re: jQuery 1.3 released

Post by volomike »

I just converted over. Here's how I'm loading it in my HEADER.php in the HEAD section. If you have a more elegant way to do this and to account for the things I'm accounting for, be my guest on a suggestion. I switched from 1.2.6 to 1.3 and everything appears to be running smoothly. I also see it went from 55K to 53.7K. If you take out the text at the top of the file, it probably loads even faster. Oh, and in my case, the constant "U" below is my absolute path to the website. When you use handsome URLs with Apache RewriteRule, all the relative pathing gets screwed up, so I switched to absolute pathing. I have a bootstrap.php file that gets called from my .htaccess file as a php autoload, and in that file it sets the U constant for me. So, change it as you see fit.

BTW, Google *wants* you to use their jQuery library. They make it available to the public, as well as other Javascript libraries, and the publicly tell you this on their API website.

Again, my tests show me that it's running smoothly with the various jQuery and AJAX stuff I was doing during the 1.2.6 days.

Code: Select all

<?
$sServerName = $_SERVER['SERVER_NAME'];
if (!(
    $sServerName == '127.0.0.1' || 
    $sServerName == 'me'
)):
?>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>
<? endif; ?>
<script type="text/javascript">
try {
if (!jQuery) {
    // jQuery obviously hasn't been loaded... let's get on that shall we...
    document.write('<scr' + 'ipt type="text/javascript" src="<?= U ?>js/jquery-1.3.min.js"></scr' + 'ipt>');
}
} catch(e) {
    document.write('<scr' + 'ipt type="text/javascript" src="<?= U ?>js/jquery-1.3.min.js"></scr' + 'ipt>');
}
</script>
User avatar
jaoudestudios
DevNet Resident
Posts: 1483
Joined: Wed Jun 18, 2008 8:32 am
Location: Surrey

Re: jQuery 1.3 released

Post by jaoudestudios »

Cool, thanks for the info volomike
Post Reply