The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Which Ajax library do you use/recommend?

Hi there,

Could you please post your comments about Ajax libraries? Tell us which one you use and which one you would recommend. Additionally, what are your reasons for using a specific one.

I think it's time for me to find something proper. I wrote a custom one a while back and have been using it for a while now without any problems, though I think I might be better off with something which provides more features and better advantages.

jQuery looks good, and it's really small. (Small script file and small syntax) I never used it in any of my projects, but it looks interesting.

Ext JS is really good at creating widgets and such.
It has its own buttons, menus and windows. And these things are accesible via mouse.
But for me, it's really hard to include things, and just including `ext-all.js` will cost 400kb of bandwidth! It's really large, even the code is compressed.
I finally created a web application using Ext library. It was so easy to create dialogs and such, but still, it's confusing!
The bad thing is when the script loads, Firefox freezes for about 2 seconds. It was annoying. Another thing is it doesn't work well on Opera!

Personally, I use dtjs, my own JavaScript library.
It's a small piece of code that prevents me from coding the same thing again and again.

Oh you can't miss Prototype! It's the best out there, simple yet elegant, has lots of basic features, serves best when you need simple client-server communication, or some event manipulations..check this out:http://www.sergiopereira.com/article...odicalExecuter
for complete documentation.

Dojo is will help if you want great GUI's or UI components.
I have used both of them and will certainly keep using.

To work around the limitation, I've found that it is possible to add before advice.

AOP advise is very powerful and can be done using a closure.

However, using advice makes the code hard to debug and is complicated to have to implement by hand.

And speaking of debugging: Avoid Dojo!

Dojo has a lot of brilliant code, but the framework itself is troubled by the eval statement called for each require(). The require statements slow things down tremendously. Trying to ameliorate this with the "Dojo build process" is troublesome. Dojo might work if you want to use the Editor or some components ( a lot of great code ), but I can't say I like the framework itself.

To work around the limitation, I've found that it is possible to add before advice.

AOP advise is very powerful and can be done using a closure.

However, using advice makes the code hard to debug and is complicated to have to implement by hand.

And speaking of debugging: Avoid Dojo!

Dojo has a lot of brilliant code, but the framework itself is troubled by the eval statement called for each require(), making it impossible to get a stack trace. The require statements slow things down tremendously. Trying to ameliorate this with the "Dojo build process" is troublesome. Dojo might work if you want to use the Editor or some components ( a lot of great code ), but I can't say I like the framework itself.

If I were to develop plugins for Wordpress using a JS library, should I rather try to understand and learn Prototype? I didn't check the files/code now, but I think the Prototype library is in Wordpress already. I'm just scared of clashes in between different libraries in the DOM.

If I were to develop plugins for Wordpress using a JS library, should I rather try to understand and learn Prototype? I didn't check the files/code now, but I think the Prototype library is in Wordpress already. I'm just scared of clashes in between different libraries in the DOM.

prototype has a way of going haywire, if you use it together with something else. If the application already uses prototype, you probably don't have a choice, less you want to sort out all the clashes manually.

One thing is I'm having a bit of trouble with jQuery at the moment, there seems to be an error in the code (or maybe my code but I'm having a tough time tracking it down, and the error is in the jquery.js file) and there is pretty much non existent support for it. There are no forums or anything, and the mailing lists are pretty dead.

I might have a look at prototype. What is scriptaculous? Is it an addon for prototype or something? I always see the 2 words together...

One thing is I'm having a bit of trouble with jQuery at the moment, there seems to be an error in the code (or maybe my code but I'm having a tough time tracking it down, and the error is in the jquery.js file) and there is pretty much non existent support for it. There are no forums or anything, and the mailing lists are pretty dead.

I might have a look at prototype. What is scriptaculous? Is it an addon for prototype or something? I always see the 2 words together...

Various! Different errors in IE5.5, IE6, IE7 (not to bothered about it working in ie5.5 though), firefox was working fine yesterday, came back today and now that is erroring is well! It seems to be when I use the addClass function. Firebug tells me:

elem.className has no properties
[IMG]chrome://firebug/content/blank.gif[/IMG]eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c&#37;a...

Various! Different errors in IE5.5, IE6, IE7 (not to bothered about it working in ie5.5 though), firefox was working fine yesterday, came back today and now that is erroring is well! It seems to be when I use the addClass function. Firebug tells me:

elem.className has no properties
[IMG]chrome://firebug/content/blank.gif[/IMG]eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a...

I think I am going to try prototype today.

I've been experimenting with jQuery for the past hours and all I can say is WOW!!!
Had some issues with a Wordpress plugin because of Prototype though.

I'll also tio my hat towards jQuery as its the only one ive expreimented with and seems very good.... although i do prefer writing ajax myself....just for the pure reason that you know, when it works, its all down to you.......dont get me wrong though somehting like JQuery cuts down hair pulling time an awful lot

I've just downloaded prototype, and it seems fairly similar to jQuery so far - quite a lot of the same syntax and functionality - I was kind of forced to by the fact that I keep getting these errors with jQuery. One thing I am missing though is jQuery's $(document).ready(); function - this runs code when the DOM has loaded and is ready to be manipulated, but doesn't wait for images, styles etc to load which it doesn't need.

Does anyone know if prototype has something similar - I am having to use window.onload at the moment, which DOES wait for images etc..