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 <legoktm.wikipedia(a)gmail.com> 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
Mediawiki-api(a)lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-api