Page 1 of 1

jQuery 1.3 released

Posted: Wed Jan 14, 2009 11:49 am
by Christopher
To all you jQuery maniacs around here...

http://blog.jquery.com/2009/01/14/jquer ... oundation/

Re: jQuery 1.3 released

Posted: Wed Jan 14, 2009 11:52 am
by jaoudestudios
Cool, thanks for the heads up :)

Can we replace our older versions with the new one? Or will it break?

Re: jQuery 1.3 released

Posted: Wed Jan 14, 2009 12:35 pm
by daedalus__
happy news. im gonna check it out. thanks arborint

Re: jQuery 1.3 released

Posted: Wed Jan 14, 2009 12:36 pm
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.

Re: jQuery 1.3 released

Posted: Wed Jan 14, 2009 12:58 pm
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

Re: jQuery 1.3 released

Posted: Wed Jan 14, 2009 3:20 pm
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

Re: jQuery 1.3 released

Posted: Wed Jan 14, 2009 10:38 pm
by Chris Corbyn
Awesome, thanks for the heads up :)

Re: jQuery 1.3 released

Posted: Thu Jan 15, 2009 2:48 pm
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>

Re: jQuery 1.3 released

Posted: Thu Jan 15, 2009 2:49 pm
by jaoudestudios
Cool, thanks for the info volomike