Archive of UserLand's first discussion group, started October 5, 1998.

XML-RPC in JavaScript for Netscape 4.x

Author:Div Shekhar
Posted:2/4/1999; 1:26:42 PM
Msg #:2678 (In response to 2665)
Prev/Next:2677 / 2679

I'm writing code that allows XML-RPC functions to appear as JavaScript functions in Netscape 4.x browsers. Of course, this uses a small applet. (I've already done this for an RMI-based server.)

So, you could write an XML-RPC method call in JavaScript like so: state = XmlRpcCall( 'examples.getStateName' , 41 );

If the XML-RPC server has a method which supplies all the available method names, you can auto-generate JavaScript functions. This allows you to rewrite the above method call like so: state = XmlRpcServer.examples.getStateName(41);

This page was archived on 6/13/2001; 4:47:45 PM.

© Copyright 1998-2001 UserLand Software, Inc.