Wikipedia:WikiProject User scripts/Guide/Ajax: Difference between revisions

Content deleted Content added
Data sources: rm Query.php (disabled)
m Code: fix
Line 52:
ajax_get('http://example.com', show_result);
function show_result(_api) {
if(_api.successajax_success)
alert('The remote page contains:\n' + _api.responseText);
else
Line 117:
}
function alert_result(_api) {
if(_api.successajax_success)
alert('Page edited!');
else