Tue, 25 Oct 2005xmlrpc javascript library and pimp rewrite
Yet Another Rewrite of Pimp, my music jukebox software, has commenced. This
time, I'm writing it in Python. This was the best excuse I could find to learn
python. I've tinkered with it before but never written an application in it.
Anyway, the interface has moved from telnet-based to web-based and uses
XMLHTTPRequest (AJAX) to perform XMLRPC calls on the purely-python webserver.
Python provides a wonderful standard module called 'xmlrpclib' to
marshall/unmarshall XMLRPC requests and responses to/from python and XML.
JavaScript, howver, lacks these marshalling features.
Some quick googling found jsolait and vcXMLRPC. Both of these are huge
frameworks and are well beyond my particular needs. BOTH of them have "the suck" and
fail to cleanly load into Firefox without warnings. Bah! Back at square-one.
I'm left without a way to marshall xmlrpc requests and responses between
javascript and xml
I spent some time learning about XMLRPC. Turns out it's a very very simple
xml-based protocol for calling methods and getting results. JavaScript has DOM already so parsing XMLRPC messages is very easy.
Take a look at the 'rpcparam2hash' and 'hash2rpcparam' functions in pimp.js and see how I
convert between JavaScript hashes (dictionaries) and XMLRPC messages. If I get
bored I may create my own xmlrpc library specifically for making xmlrpc calls
with javascript. If you want this to get done, please let me know and give me
encouragement ;)
Comments: 0 (view comments)
0 responses to 'xmlrpc javascript library and pimp rewrite'Leave a reply
You need javascript enabled to use this form. Anti-spam efforts ongoing. Also,
if the comment doesn't show up, it's because the form expired. Go back and copy
your comment, reload the form, and resubmit. Apologies if this is a hassle, I'm
just playing with antispam methods right now. If this insists on not working,
please email me about it.
|
Search this siteNavigationMetadataHome About Resume My CodeArticlesARP Security Dynamic DNS with DHCP OpenLDAP+Kerberos+SASL PPP over SSH SSH Security: /bin/false Week of Unix Tools Work EfficiencyProjectsfex firefox tabsearch firefox urledit grok keynav liboverride newpsm (FreeBSD) nis2ldap pam_captcha poor man's backup Solaris audio utility xboxproxy xdotool xmlpresenter xpathtool misc scriptsPresentationsYahoo! Hack Day '06 Unix Essentials Vi/Vim EssentialsTag CloudCalendar
FriendsBarCamp Kent Brewster Tantek Çelik John Resig Wesley Shields Tyler ShieldsTechnorati |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||