With this code http://paulisageek.com/tmp/options.html :
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.js" type="text/javascript"></script>
<script>
$.get("http://metaward.com/import/http://metaward.com/u/ptarjan", function(data) {
alert(data);
});
</script>
in Firefox 3.5 on Vista it does an OPTIONS request to that url, and then the callback is never called with anything.
When it isn't cross domain, it works fine : http://metaward.com/static/tmp/options.html.
Shouldn't Jquery just make the call with a <script>
node and then do the callback when its loaded? I understand that I won't be able to get the result (since it is cross domain), but that's ok, I just want the call to go through. Is this a bug or am I doing something wrong?
EDIT: It seems the OPTIONS is from the Cross-Origin Resource Sharing (CORS) standard. See http://metajack.im/2010/01/19/crossdomain-ajax-for-xmpp-http-binding-made-easy/ about allowing cross domain requests.