4 Oct
2004
4 Oct
'04
9:32 p.m.
I need to call a xml-rpc subroutine from javascript. How is this done? In my daemon I have subroutines such as emailInfo, officeInfo, pwdInfo,... I call these subroutines in a client function called userInfo(username): def userInfo(userName): server = xmlrpclib.Server("http://tweety:8080/RPC2") email = server.da.emailInfo(userName) office = server.da.officeInfo(userName) pwd = server.da.pwdInfo(userName) acct = server.da.acctInfo(userName) dir = server.da.dirInfo(userName) info = {'email' : email, 'office': office, 'pwd' : pwd, 'acct' : acct, 'dir' : dir } return info How do I call userInfo in a javascript function? Thank You in Advance, Laura