Note for security reasons a script (which uses XMLHttpRequest) can only read a file on the same server as the script - not from 3rd party servers.
Based on the Reading Server Data script in the book JavaScript and Ajax for the Web by Tom Negrino and Dori Smith.
|
|
It doesn't have to be a link.
Retrieve XML when click image (which is not a link):