Hey Rafal, Thanks for your reply but I think, perhaps, you misunderstood where I was going with this post. I understand that the Same Origin Policy is a problem in conventional JS and I do know about JSONP and JSONRequest. What I was suggesting was an implementation, not for the browser, but for the mobile scope of JavaScript. And when I say mobile, I don't mean mobile browsers, I mean mobile applications - hence, why the Same Origin Policy does not apply. Hope that clears it up.
-Jon On Dec 3, 7:55 am, Rafał Pocztarski <r.pocztar...@gmail.com> wrote: > 2009/12/3 azoff <j...@azoffdesign.com>: > > > 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 jquery-...@googlegroups.com. To unsubscribe from this group, send email to jquery-dev+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en.