SitePoint Sponsor

User Tag List

Page 1 of 3 123 LastLast
Results 1 to 25 of 61

Hybrid View

  1. #1
    Working on it... Contrid's Avatar
    Join Date
    Apr 2006
    Location
    Online
    Posts
    955
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    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.

    Looking forward to reading your comments and suggestions.

    Best,
    Antonie
    Last edited by Contrid; Jun 20, 2007 at 16:50.
    And so I got lost in code...completely asphyxiated by it...

    Premium WordPress plugins - Tribulant Software

  2. #2
    Working on it... Contrid's Avatar
    Join Date
    Apr 2006
    Location
    Online
    Posts
    955
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    I've read about these :



    ...though I haven't tried any of them yet.
    And so I got lost in code...completely asphyxiated by it...

    Premium WordPress plugins - Tribulant Software

  3. #3
    I meant that to happen silver trophybronze trophy Raffles's Avatar
    Join Date
    Sep 2005
    Location
    Tanzania
    Posts
    4,662
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    jQuery is getting a lot of attention lately.

  4. #4
    Working on it... Contrid's Avatar
    Join Date
    Apr 2006
    Location
    Online
    Posts
    955
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Raffles View Post
    jQuery is getting a lot of attention lately.
    Thanks for the response.
    Doing a search on jQuery now. Have heard about it though.
    Is this what you use?
    And so I got lost in code...completely asphyxiated by it...

    Premium WordPress plugins - Tribulant Software

  5. #5
    SitePoint Zealot the DtTvB's Avatar
    Join Date
    Jul 2006
    Location
    Thailand
    Posts
    162
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

    I also used script.aculo.us once when I was a JavaScript newbie.

  6. #6
    Working on it... Contrid's Avatar
    Join Date
    Apr 2006
    Location
    Online
    Posts
    955
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Thanks guys!
    Please keep those comments coming.

    I'm going to give jQuery a try in the next 2 days.
    Will come back to post my feedback.
    And so I got lost in code...completely asphyxiated by it...

    Premium WordPress plugins - Tribulant Software

  7. #7
    SitePoint Member
    Join Date
    May 2007
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

  8. #8
    SitePoint Enthusiast
    Join Date
    Feb 2004
    Location
    Third Stone From The Sun
    Posts
    82
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.
    My outdated site is down for a while now.

  9. #9
    SitePoint Enthusiast
    Join Date
    Feb 2004
    Location
    Third Stone From The Sun
    Posts
    82
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    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.

    Even here you can see that the Dojo author is blaming eval and not his design:
    http://manual.dojotoolkit.org/WikiHo...otBook/Book122
    My outdated site is down for a while now.

  10. #10
    Working on it... Contrid's Avatar
    Join Date
    Apr 2006
    Location
    Online
    Posts
    955
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    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.
    And so I got lost in code...completely asphyxiated by it...

    Premium WordPress plugins - Tribulant Software

  11. #11
    SitePoint Wizard silver trophy kyberfabrikken's Avatar
    Join Date
    Jun 2004
    Location
    Copenhagen, Denmark
    Posts
    6,157
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Contrid View Post
    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.

  12. #12
    Guru Meditation Error gnarly's Avatar
    Join Date
    Dec 2003
    Location
    Cheltenham, United Kingdom
    Posts
    692
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Contrid View Post
    If I were to develop plugins for Wordpress using a JS library, should I rather try to understand and learn Prototype?
    Wordpress is transitioning over to JQuery for future versions (at least in the back end), so I think you'd be better off targeting that: http://www.siolon.com/2007/the-trans...for-wordpress/

    Personally, I quite like Mootools, and Dean Edwards' Base2 library.
    Olly Hodgson
    thinkdrastic.net

  13. #13
    SitePoint Enthusiast
    Join Date
    Feb 2004
    Location
    Third Stone From The Sun
    Posts
    82
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Which libraries have events wired into XHR?

    For example, if I want to subscribe to a call COMPLETE event type.

    Code:
    SearchPage = new function SearchPage() {
      this.connection = Transport.getInstance().makeConnection();
      formSerializer = new FormSerializer( document.getElementById( "zipcode-lookup" ) );
      
      this.connection.subscribe( Transport.Events.CALL_COMPLETE, aFunction );
    
      this.stubManager = new StubManager( this.connection );
    };
    This approach allows the StubManager to subscribe to connection events on another object.

    Most libraries allow you to have onsuccess = aFunction. This is just as problematic as a.onclick = function.

    Using an observer for AJAX is necessary and most libraries don't do this.

    Show me the library that does this!

    In fact, most AJAX libraries like YUI and prototype could not be modified to implement observer. Poorly designed? You be the judge!
    My outdated site is down for a while now.

  14. #14
    SitePoint Wizard silver trophy kyberfabrikken's Avatar
    Join Date
    Jun 2004
    Location
    Copenhagen, Denmark
    Posts
    6,157
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by DHTML Kitchen View Post
    Using an observer for AJAX is necessary and most libraries don't do this.

    Show me the library that does this!
    http://www.mochikit.com/doc/html/MochiKit/Async.html

  15. #15
    SitePoint Wizard silver trophy kyberfabrikken's Avatar
    Join Date
    Jun 2004
    Location
    Copenhagen, Denmark
    Posts
    6,157
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You might want to read this article: http://www.sitepoint.com/article/javascript-library

  16. #16
    SitePoint Wizard silver trophybronze trophy Stormrider's Avatar
    Join Date
    Sep 2006
    Location
    Nottingham, UK
    Posts
    3,133
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    I think jQuery is fantastic, but I've not used it for AJAX yet so I couldn't tell you on that front.

  17. #17
    SitePoint Wizard HarryR's Avatar
    Join Date
    Dec 2004
    Location
    London, UK
    Posts
    1,376
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm using a mix of ExtJS, jQuery and some home-brew things (e.g. more transparent php<->javascript RPC).

  18. #18
    The Jellophonic Autobrain CHeeSeBLiND's Avatar
    Join Date
    Jul 2001
    Location
    Bolton, England
    Posts
    584
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I'm down with prototype/scriptaculous.

    Even more so now I'm coding with rails.
    hmm...

  19. #19
    SitePoint Wizard silver trophybronze trophy Stormrider's Avatar
    Join Date
    Sep 2006
    Location
    Nottingham, UK
    Posts
    3,133
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    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...

  20. #20
    Working on it... Contrid's Avatar
    Join Date
    Apr 2006
    Location
    Online
    Posts
    955
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Stormrider View Post
    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...
    What error(s) are you getting?
    And so I got lost in code...completely asphyxiated by it...

    Premium WordPress plugins - Tribulant Software

  21. #21
    SitePoint Wizard silver trophybronze trophy Stormrider's Avatar
    Join Date
    Sep 2006
    Location
    Nottingham, UK
    Posts
    3,133
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    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...

    I think I am going to try prototype today.

  22. #22
    Working on it... Contrid's Avatar
    Join Date
    Apr 2006
    Location
    Online
    Posts
    955
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Stormrider View Post
    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.
    And so I got lost in code...completely asphyxiated by it...

    Premium WordPress plugins - Tribulant Software

  23. #23
    SitePoint Wizard
    Join Date
    Oct 2005
    Location
    London
    Posts
    1,678
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi,

    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

  24. #24
    SitePoint Wizard silver trophybronze trophy Stormrider's Avatar
    Join Date
    Sep 2006
    Location
    Nottingham, UK
    Posts
    3,133
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    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..

  25. #25
    SitePoint Wizard silver trophybronze trophy Stormrider's Avatar
    Join Date
    Sep 2006
    Location
    Nottingham, UK
    Posts
    3,133
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    If you have having troubles with jQuery & Prototype not playing nicely, you can call jQuery.noConflict(); which will relinquish control of $ to prototype, then you can use 'jQuery' isntead of '$'.


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
  •