Re: [xwt-users] Passing arrays in xmlrpc calls

"Charles Goodwin" <[email protected]>
Newsgroups gmane.comp.java.xwt.users
Message-ID <[email protected]>
> data =
> xwt.xmlrpc('http://127.0.0.1/xwt/auth/rpc.cgi').user.show(['userid',
> userid]);
>
> Passes an array with two elements (one fixed string, one var).

Thanks Stuart, knowing this works I can answer this question:
http://devedge.netscape.com/library/manuals/2000/javascript/1.5/reference/array.html#1193889

"function( array.toSource() )" should do it.

Basically, you need to pass the array _literal_ which is provided by the
toSource() function.  If you pass an array _reference_ then
sub-programitically-logically (ie in the mind of an assembly programmer)
the function does not receive the array but rather the reference, which is
useless remotely.

Hope that works for you, Tom.

- Charlie

The future of webapps - www.xwt.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.