Mozilla plugin with xmlrpc server
I have been having this problem for hours, so i am going to post it and hope someone can give me some hints.
I am doing a Mozilla plugin and it requires to talk with the back-end server. The server is implemented as xmlrpc server.
My plan is to create a xmlrpc client in the plugin (javascript), then calls the server, but th开发者_运维百科e same origin policy becomes the main issue. I do not know if there are alternatives can achieve my goals, or i have the wrong design of doing this. Thanks.
you want to use jsonp which enables javascript to call servers on different domains. the caller specifies the name of a callback function in the method call, and the server wraps the json results in a function call. this ensures that the client has a chance to handle the return data. also see jquery.post for an easy way to issue the request.
精彩评论