2009/12/3 azoff <[email protected]>: > As you can tell by the title of this post, one feature I would love to > help spec out is a JSON RPC implementation to extend the .ajax > functionality in jQuery. Due to the sandbox limitations in > conventional JavaScript, cross domain posting (practically the essence > of any RPC) is only a pipe dream left for future ECMA specs.
While I think that JSON-RPC is nice, certainly better than the XML solutions, it doesn't really help much with the Same Origin Policy, unless as you point out the browsers stop implementing the standard. I wouldn't count on it in the long run, though. What I am really looking forward to is JSONRequest as proposed by Douglas Crockford few years ago: http://www.json.org/JSONRequest.html Right now I'd recommand using JSONP: http://bob.pythonmac.org/archives/2005/12/05/remote-json-jsonp/ Basically it's JSON in parentheses with a padding at the beginning which is specified in the uri. It can be run by injecting a script tag into the DOM. It works because script tags are not restricted by the Same Origin Policy. jQuery already supports it: http://docs.jquery.com/Ajax/jQuery.getJSON Rafał Pocztarski -- You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en.
