Skip to main content

What is the best Javascript XML-RPC client library?



What is the best Javascript XML-RPC client library in your opinion and why?





I'am making a JQuery app and I need to communicate with my xmlrpc server with it.





Found following libraries, but I have no idea what are their pros and cons:





http://www.zentus.com/js/xmlrpc.js.html





http://www.scottandrew.com/xml-rpc/





http://phpxmlrpc.sourceforge.net/jsxmlrpc/





http://www.vcdn.org/Public/XMLRPC/





http://mimic-xmlrpc.sourceforge.net/



Source: Tips4all

Comments

  1. There is a Google-hosted library here: http://code.google.com/p/json-xml-rpc/.
    It supports both XML-RPC and JSON-RPC for JavaScript, and asynchronous as well as synchronous requests. I'm about to try out the XML-RPC for JavaScript myself with a JQuery UI and will update this based on my findings.

    ReplyDelete
  2. I have tried http://www.zentus.com/js/xmlrpc.js.html myself. It has problems parsing the result in FireFox and Chrome, parsing the result in IE worked fine.

    I have not tried the others, but 'mimic' looks great (if it works).

    For my own problem, I've switched to JSON instead of XMLRPC.

    ReplyDelete
  3. The protocol is rather easy, are you sure you need a library at all? Maybe just send the XML the protocol requires?

    ReplyDelete
  4. Adding a library to the list. I found this one quite easy to use, although I haven't tried all of the others that are mentioned.


    http://kuriositaet.de/javascript/jsxmlrpc.html
    http://kuriositaet.de/javascript/xmlrpc.html
    http://sourceforge.net/projects/jsxmlrpc/

    ReplyDelete

Post a Comment

Popular posts from this blog

Why is this Javascript much *slower* than its jQuery equivalent?

I have a HTML list of about 500 items and a "filter" box above it. I started by using jQuery to filter the list when I typed a letter (timing code added later): $('#filter').keyup( function() { var jqStart = (new Date).getTime(); var search = $(this).val().toLowerCase(); var $list = $('ul.ablist > li'); $list.each( function() { if ( $(this).text().toLowerCase().indexOf(search) === -1 ) $(this).hide(); else $(this).show(); } ); console.log('Time: ' + ((new Date).getTime() - jqStart)); } ); However, there was a couple of seconds delay after typing each letter (particularly the first letter). So I thought it may be slightly quicker if I used plain Javascript (I read recently that jQuery's each function is particularly slow). Here's my JS equivalent: document.getElementById('filter').addEventListener( 'keyup', function () { var jsStart = (new Date).getTime()...

Is it possible to have IF statement in an Echo statement in PHP

Thanks in advance. I did look at the other questions/answers that were similar and didn't find exactly what I was looking for. I'm trying to do this, am I on the right path? echo " <div id='tabs-".$match."'> <textarea id='".$match."' name='".$match."'>". if ($COLUMN_NAME === $match) { echo $FIELD_WITH_COLUMN_NAME; } else { } ."</textarea> <script type='text/javascript'> CKEDITOR.replace( '".$match."' ); </script> </div>"; I am getting the following error message in the browser: Parse error: syntax error, unexpected T_IF Please let me know if this is the right way to go about nesting an IF statement inside an echo. Thank you.