Results 1 to 6 of 6

Thread: What Javascript/AJAX libraries exist?

  1. #1
    Join Date
    Mar 2009
    Posts
    65
    Thanks
    13
    Thanked 4 Times in 4 Posts

    Default What Javascript/AJAX libraries exist?

    Hi all,

    I normally usually just do PHP server-side coding, but think it is now essential to pick up some AJAX. I have read through some AJAX tutorials which teach how do it from ground up. Are there any libraries, though, which have encapsulated those usual functions so that I don't have to reinvent the wheel?

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    jQuery has great ajax functions, take a peak.

    I'm sure the following also have some ajax functions, but haven't ever used it (dont know if they have ajax)

    MooTools
    Prototype
    Scriptaculous
    jPop
    Jeremy | jfein.net

  3. The Following User Says Thank You to Nile For This Useful Post:

    CrazyChop (03-19-2009)

  4. #3
    Join Date
    Apr 2008
    Location
    San Diego, CA
    Posts
    352
    Thanks
    57
    Thanked 6 Times in 6 Posts

    Default

    I use the YUI library, which has a great ajax module called Connection Manager:

    http://developer.yahoo.com/yui/connection/

  5. The Following User Says Thank You to jlizarraga For This Useful Post:

    CrazyChop (03-19-2009)

  6. #4
    Join Date
    Mar 2005
    Location
    SE PA USA
    Posts
    30,495
    Thanks
    82
    Thanked 3,449 Times in 3,410 Posts
    Blog Entries
    12

    Default

    In addition to the others already mentioned, there is DOJO:

    http://www.dojotoolkit.org/

    Probably others. Personally, as far as libraries go, I have the most experience with jQuery, and believe it has some advantages. However, it is worth noting that jQuery recently adopted some of the selector code from DOJO, recognising that it was faster - more efficient.

    In the final analysis though, it depends upon what you are doing. Often a custom routine will be most efficient, rather than adding an entire library for only one or two of its features. Also, most if not all libraries are nowhere near as backward compatible or cross browser as a custom routine may be. If supporting the maximum number of browsers and systems is part of your goals, custom code is still the way to go. A custom routine can be as forward (if not more so) compatible as any library, while at the same time supporting many older browsers that these libraries neglect.

    For a very cross browser, backward and forward compatible basic AJAX routine, see:

    http://www.dynamicdrive.com/forums/s...9&postcount=16

    Although authored by yours truly, it borrows from the best I could find in all the various approaches. It is basic though. This means that it cannot accomplish some of the more advanced AJAX objectives in and of itself. At the same time it points you in the right direction for code of that type, should you choose to custom code AJAX that is as universal as possible.
    - John
    ________________________

    Show Additional Thanks: International Rescue Committee - Donate or: The Ocean Conservancy - Donate or: PayPal - Donate

  7. The Following User Says Thank You to jscheuer1 For This Useful Post:

    CrazyChop (03-19-2009)

  8. #5
    Join Date
    Mar 2009
    Posts
    65
    Thanks
    13
    Thanked 4 Times in 4 Posts

    Default

    Thanks a lot.

    I have see a lot of neat effort done with AJAX (progress bar, in-browser pop-up) - does those libraries handle those, or are those custom coded with Javascript/DOM?

  9. #6
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    Er, progress bars and pop-ups don't have anything to do with AJAX. They're just document effects — there's no communication at all with the server, much less the asynchronous XML-using kind.

    I think Dōjō is one of the more up-and-coming kits, but jQuery is popular in some crowds nowadays. ExtJS is also worth looking at.

    I think you (and we) should first understand exactly what it is you're doing. Javascript and AJAX are not synonymous. Javascript is a programming language. AJAX is a simple programming technique that involves passing data back and forth asynchronously between the server and client, using Javascript and formatted as XML.

    If you're truly just looking for Javascript libraries, I find Functional Javascript very useful. I have a small assortment of my own libraries for various tasks, too.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends franšais | entiendo espa˝ol | t˘i Ýt hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  10. The Following User Says Thank You to Twey For This Useful Post:

    CrazyChop (03-19-2009)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •