^0^, sorry for my poor English.
I modified the jsonrpc.js so that there is no any RPC call to be made in the JSONRpcClient constructor.
A RPC call just will be made when jsonrpc.rpc('object.someMethod')(params)  was executed.
It is a difficulty for me to explain the reason in English, but I am sure you must know it :-).

2006/8/3, Andreas Junghans < [EMAIL PROTECTED]>:
Hi,

Am 03.08.2006 um 11:43 schrieb 鹏举马:

> > > > > > >  JSON-RPC-Java uses a synchronous server call when you
> instantiate
> the central JSONRpcClient class (in order to receive all the
> available objects and methods from the server). Usually, synchronous
> calls should be avoided because they block the browser for the time
> of the call. This is not a big design flaw, just a weak point.
>
> $$$$: if there is a function in the auguments it will be an a
> synchronous call.
>       you can see it in jsonrpc.js
> ......
>     if(typeof args[0] == "function") callback = args.shift();
> ......

I know. I wasn't talking about making explicit RPC calls, but about
the internal initialization in the JSONRpcClient class (which is
provided by JSON-RPC-Java). As far as I know, there's no way to avoid
the single synchronous XMLHttpRequest call that is made inside the
JSONRpcClient constructor.

Regards,

   Andreas




-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel



--
一农工作室
http://www.ynstudio.com
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
qooxdoo-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel

Reply via email to