Search the web
Sign In
New User? Sign Up
jsolait
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
XMLRPCAsyncCallback   Message List  
Reply | Forward Message #381 of 411 |
RE: [jsolait] Re: XMLRPCAsyncCallback

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").ServiceProxy
var serviceURL = "http://jsolait.net/services/test.jsonrpc";
var methods = ['echo'];

var service = new ServiceProxy(serviceURL, methods);
service.echo("hello", function(r,e){
foobar(r)
})

works just fine when you run it in
http://jsolait.net/wiki/jsolaitLive

Jan

-- In jsolait@yahoogroups.com, "dmaster97" <dmaster@...> wrote:
>
> 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.com, "Jan-Klaas Kollhof" <keyjaque@>
> wrote:
> >
> >
> > --- In jsolait@yahoogroups.com, "n1ywb_1" <jeff.laughlin@g...>
> 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('xmlrpc');
> >
> > var service = new xmlrpc.ServiceProxy('/test.py', ['echo']);
> >
> > service.echo('Hello jsolait', function(result, error){
> > print(result);
> > });
> >
> > //or
> >
> > function callback(result, error){
> > print(result);
> > }
> >
> > service.echo('Hello jsolait', callback);
> >
> >
> >
> >
> > try it using jsolait-live
> >
>



Tue Aug 21, 2007 8:36 am

dmaster97
Offline Offline
Send Email Send Email

Forward
Message #381 of 411 |
Expand Messages Author Sort by Date

Can somebody please post an example of how to set up an asynchronous xmlrpc call and callback function? Thanks!...
n1ywb_1
Offline Send Email
Dec 1, 2005
3:16 am

... Here the example: var xmlrpc=imprt('xmlrpc'); var service = new xmlrpc.ServiceProxy('/test.py', ['echo']); service.echo('Hello jsolait', function(result,...
Jan-Klaas Kollhof
keyjaque
Offline Send Email
Dec 2, 2005
3:23 pm

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...
dmaster97
Offline Send Email
Jun 23, 2007
5:14 am

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: ...
Jan-Klaas Kollhof
keyjaque
Offline Send Email
Jun 26, 2007
8:18 pm

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...
Henry Eko Hapsanto
dmaster97
Offline Send Email
Aug 21, 2007
8:24 am

... Yes you can. Jan...
Jan-Klaas Kollhof
keyjaque
Offline Send Email
Aug 22, 2007
8:29 am

Hi, jan I've been happy playing with jsolait since. :-) Apparently, there is small bug with opera browser. Any rpc call back using async call would have...
Henry Eko Hapsanto
dmaster97
Offline Send Email
Oct 31, 2007
3:05 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help