Wikipedia:WikiProject User scripts/Guide/Ajax: Difference between revisions
Content deleted Content added
→Edit a page and other common actions: Use promises! |
→Fetch page content: Use promises! |
||
Line 19:
<source lang="javascript">
$.ajax({
url: mw.util.wikiGetlink( 'Wikipedia:Sandbox' )
})
alert( 'The remote page contains:\n' + data ); });
</source>
|