in my eternal internal fight on whether to stay with mootools or jump to jQuery I\'ve found on the jQuery documentation something that got my attention and this is that jQue
You may use JSONP in MooTools by using a plugin, JSONP. It's made by Aaron Newton, one of the core MooTools developers.
It seems you can't do it with Mootools, according to its API docs and this forum.
The reason this is limited is probably because of Cross-site scripting attacks.
It's said right on the page that it's JSONP.
JSONP is a trick where the server, instead of returning the usual response, wraps it into a method call of the user-supplied method, e.g. instead of:
{"foo": "bar", "baz":"bah"}
It would return:
temporaryCallbackFunctionName({"foo": "bar", "baz":"bah"});
jQuery defines the temporary callback function and inserts a <script src="..."></script>
element, which is not limited by the same origin policy.
When the script is loaded, the function is executed and that's it.
The downside is that if the server is evil (or hacked) it can now execute arbitrary code in your browser.
More info here.
This is included in MooTools more since v1.2.2 (released on April 23rd 2009).
Check this documentation page for more info.