vmitache / xdrpc

Automatically exported from code.google.com/p/xdrpc
0 stars 0 forks source link

Use easyXDM for the cross domain communication #3

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm the author of easyXDM (http://easyxdm.net), a javascript library that 
facilitates fast, reliable and secure Cross Document Messaging, and which by 
the use of XHR on one of the documents also facilitates cross-domain ajax with 
the same properties (see http://consumer.easyxdm.net/current/example/xhr.html).
Its primary feature though is RPC (see 
consumer.easyxdm.net/current/example/methods.html).

I've looked into creating a wrapper for GWT, but I fear that the learning curve 
is just a bit to steep for such a narrow project, so I was wondering if you 
could give few pointers, or perhaps provide a basic project?

Using easyXDM should be quite easy, on the serverside you need to be able to 
process JSON-RPC over HTTP and to provide a very simple document with the code 
necessary to perform the XHR (basically this 
http://github.com/oyvindkinsey/easyXDM/blob/master/src/xhr.html), and on the 
client side, you add the easyXDM script and instantiate a simple Rpc object 
(e.g like this 
http://github.com/oyvindkinsey/easyXDM/blob/master/src/example/xhr.html)

From there on all RPC calls are just 'regular' ascyn rpc.foo(arg1, arg2, 
function(response){...}} calls.

Interested?
Give me a shout at @okinsey, or at oyvind@kinsey.no.

Original issue reported on code.google.com by okinsey on 12 Aug 2010 at 9:35

GoogleCodeExporter commented 9 years ago
As an update, xhr.html has been replaced at github with 
http://github.com/oyvindkinsey/easyXDM/blob/master/src/cors/index.html which 
implements the CORS standard

Original comment by okinsey on 26 Oct 2010 at 3:18