Wikipedia:WikiProject User scripts/Guide/Ajax: Difference between revisions
Content deleted Content added
Christian75 (talk | contribs) →Edit a page and other common actions: clean up, typos fixed: etc) → etc.) using AWB |
Fix: the result is on "data.edit.result", not on "data.result" |
||
Line 66:
action: 'edit',
title: mySandbox,
text: 'Cool! It works!
summary: 'Trying to edit my sandbox [[Project:WikiProject User scripts/Guide/Ajax|using AJAX]]...',
token: token
},
success: function( data ) {
if ( data && data.edit && data.edit.result && data.edit.result == 'Success' ) {
alert( 'Page edited!' );
} else {
|