As pointed out by Legoktm, you have to specify the format to receive json. The original URL should work without the callback function specified (jquery does this automatically when dataType is specified to jsonp).

Kristian

09.09.2014 11:14, Legoktm kirjutas:
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