https://bugzilla.wikimedia.org/show_bug.cgi?id=35084
--- Comment #1 from Krinkle <[email protected]> 2012-03-10 14:05:10 UTC --- I've added an alternative (shorter) method: function ok (wikitext) { /* .. */ console.log(wikitext); } function err () { /* .. */ console.log('err', arguments); } $.getJSON(mw.util.wikiScript('api'), 'format=json&action=query&prop=revisions&rvprop=content&rvlimit=1&titles=User:Krinkle', function (data) { try { for ( var page in data.query.pages ) { var wikitext = data.query.pages[page].revisions[0]['*']; ok(wikitext); } } catch (e) { err(e); } }).fail(err); -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
