Tod wrote:
> Now that I've got this working I tried to replace it with a jQuery
> AJAX
> call (test.php returns some canned JSON data):
>
>
> $j(document).ready(function() {
> alert("Ready...");
>
> var strURL="http://test.server.com/test.php";
>
> alert("Making ajax call...");
>
> $j.ajax({
> type: 'GET',
> url: strURL,
> async: false,
> cache: false,
> dataType: 'json',
> error: function(jqXHR, textStatus, errorThrown) {
> alert(textStatus);
> }
> success: function(data,status,request){
> $j( '#p1' ).html(data);
> }
> })
> })
>
> Nothing is returned, not even an error. Is this supported on MW
> 1.6.15?
>
>
> Thanks - Tod
>
Likely not related to MediaWiki in any way.
Cross-domain requests are not allowed by browser due to security issues.
If strURL is in fact within the domain you execute from, then
something is wrong.
There is a way to get data from other domains, but it requires the
other domain
offering a method to do so. One popular way is a callback parameter
which is
called with a JSON object.
--
Krinkle
_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l