Wikipedia:WikiProject User scripts/Guide/Ajax: Difference between revisions
Content deleted Content added
Pathoschild (talk | contribs) →Data sources: rm Query.php (disabled) |
Pathoschild (talk | contribs) m →Code: fix |
||
Line 52:
ajax_get('http://example.com', show_result);
function show_result(_api) {
if(_api.
alert('The remote page contains:\n' + _api.responseText);
else
Line 117:
}
function alert_result(_api) {
if(_api.
alert('Page edited!');
else
|