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
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to