Hi Legoktm,

Did you note 

$.ajax({
 'url': url,
 'dataType': 'jsonp',
 'cache': true,
 'success': ajaxSuccess,
 'error': ajaxError
});

I presume the ‘dataType’:’jsonp’ inserts some parameter in the URL that sets 
the format. To jsonp.

ja

On Sep 9, 2014, at 1:14 AM, Legoktm <[email protected]> wrote:

> On 9/9/14, 12:10 AM, jim andrews wrote:
>> Hi Kristian,
>> 
>> Thanks for your help. I have removed the callback parameter (and the 
>> format=jsonfm) from the below url and have also changed the $.ajax call as 
>> you advise. Consequently, I am no longer getting the error I previously was. 
>> However, I am getting the below error:
> 
> Actually you should pass format=json if you want JSON to be returned. If
> no format parameter is specified, the API defaults to "xmlfm", which is
> an HTML representation of the XML format. See
> <https://www.mediawiki.org/wiki/API:Data_formats#Output> for some more
> details.
> 
> -- Legoktm
> 
> _______________________________________________
> Mediawiki-api mailing list
> [email protected]
> https://lists.wikimedia.org/mailman/listinfo/mediawiki-api


_______________________________________________
Mediawiki-api mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api

Reply via email to