You should probably use the API rather than that. See https://www.mediawiki.org/wiki/API:Extensions
On 3 September 2014 16:42, Toni Hermoso Pulido toniher@cau.cat wrote:
Hello,
for different custom extensions I've been doing something like this with GET:
$.get( mw.util.wikiScript(), { format: 'json', action: 'ajax', rs: 'MyExt::MyFunction', rsargs: [param1, param2] }, function(data) { // console.log(data); });
MyExt::MyFunction is in $wgAjaxExportList[].
However, since now I have too much data for a URL (414 HTTP error) I'd prefer to use POST. So far I have not found a proper way to build it. Any idea or advice?
Thanks!
-- Toni Hermoso Pulido http://www.cau.cat http://www.similis.cc
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l