Hello,
Sorry for the long reply.
I finally get it work.
Thank you.
I’m working on modified phpolait, and
I’m a bit clueless to move from jsolait v.1 to jsolait v2
Can I bundle jsolait in distribution with
my modified phpolait?
I’m creating a new project in
sourceforge called PHPOlaitEx, because I can’t contact the original
developer.
Best regards
Henry
From:
jsolait@yahoogroups.com [mailto:jsolait@yahoogroups.com] On Behalf Of Jan-Klaas Kollhof
Sent: Wednesday, June 27, 2007
3:18
To: jsolait@yahoogroups.com
Subject: [jsolait] Re:
XMLRPCAsyncCallback
I think I need some more info on that, maybe some code
so I can
reproduce the problem.
There is no reason why the callback should not see the function.
e.g:
function foobar(a){
print(a);
}
var ServiceProxy = imprt("jsonrpc"
var serviceURL = "http://jsolait.
var methods = ['echo'];
var service = new ServiceProxy(
service.echo(
foobar(r)
})
works just fine when you run it in
http://jsolait.
Jan
-- In jsolait@yahoogroups
>
> Hello,
> i'm new to jsolait.
>
> i've using it like a charm.
> but i have problems with callbacks.
>
> i use json rpc instead of xml rpc, but i think the case would be
the
> same.
>
> the codes inside the callbacks function seems to be blind to other
> methods created in the same script.
> it can only calls javascript builtin methods or dom method only.
>
> supposely there are function like this
> function justAdd(a,b)
> return a+b;
> }
>
> the code inside callback function did not recognise this method.
>
> i do this because i also use other dhtml enricher script such as
dojo
> toolkit and my own libraries with my code. and the callback
function
> cannot call methods from these libraries.
>
> best regards,
> Henry
>
>
> --- In jsolait@yahoogroups
> wrote:
> >
> >
> > --- In jsolait@yahoogroups
> wrote:
> > >
> > > Can somebody please post an example of how to set up an
> asynchronous
> > > xmlrpc call and callback function? Thanks!
> > >
> >
> >
> > Here the example:
> >
> > var xmlrpc=imprt(
> >
> > var service = new xmlrpc.ServiceProxy
> >
> > service.echo(
> > print(result)
> > });
> >
> > //or
> >
> > function callback(result, error){
> > print(result)
> > }
> >
> > service.echo(
> >
> >
> >
> >
> > try it using jsolait-live
> >
>