Tuesday, February 28th, 2006

Ajax Plugin Released for jQuery

Category: Ajax, JavaScript

<>p> For all of the jQuery fans out there (or anyone, really that wants a lightweight, powerful Javascript framework), there’s been a new plugin released to integrate Ajax support into this popular package.

The new AJAX plugin for jQuery is ready – and if you’re running off of the latest code, it’s already rolled in. Along with that, there are a few new effects to be enjoyed: fadeIn, fadeOut, and center. I’ve also squished a number of bugs, which have gone into this release too.

You can find out more about this new plugin over on this page of the jQuery site and, if you want more info about the framework in general, head to their main page.

Related Content:

Posted by Chris Cornutt at 2:09 pm
6 Comments

+++--
3.9 rating from 60 votes

6 Comments »

Comments feed TrackBack URI

John,I don’t know what $().load() supposed to do,but this:

function aa(){
alert("ok");
$("hh").load("b.html");
}

sss

do nothing for me.
And please post “docs” in forum section,I want to leave some comments “in place” but don’t know how.

Thanks.

Comment by Andrey Skvortsov — March 2, 2006

Ok,it’s work but $() function return some kind of object which could not be operated directly-I mean,how I can get “real” dom object from something that returns by $().I thought you model extend but not replace standard html elements.But it seems I exchange dom on something with limited fuctionality you provide.

I don’t understand something?
Thanks.

Comment by Andrey Skvortsov — March 2, 2006

I found get() function! But $(hh).get()[0].innerText looks not very user friendly,more nice would be $(hh).innerText if $() returns single element and $(hh)[0].innerText if it returns array.
Why you build layered object model?

Thanks.

Comment by Andrey Skvortsov — March 2, 2006

Add these to the end of your jquery.js file they will help with DOM traversal

$.fn.element = function(i) {
i = i || 0;
return this.get(i);
}

$.fn.firstChild = function(i) {
i = i || 0;
return $(this.get(i).firstChild);
}

$.fn.lastChild = function(i) {
i = i || 0;
return $(this.get(i).lastChild);
}

$.fn.nextSib = function(i) {
i = i || 0;
for(var __next = this.get(i).nextSibling; __next.nodeType != 1; __next = __next.nextSibling) {}
return $(__next);
}

$.fn.prevSib = function(i) {
i = i || 0;
for(var __next = this.get(i).previousSibling; __next.nodeType != 1; __next = __next.previousSibling) {}
return $(__next);
}

Comment by Kenton Simpson — April 13, 2006

I can get “real” dom object from something that returns by $().

Comment by שש בש באינטרנט — June 15, 2006

for iphone mobile bingo http://www.mobile-phone-bingo.com

Comment by PhoneCasino — April 20, 2008

Leave a comment

You must be logged in to post a comment.