Why the following code Based on Mozilla example does not work? Tried with Firefox 3.5.7 & Chrome.
You cannot make requests across domains, even with local files.
https://developer.mozilla.org/en/Same_origin_policy_for_JavaScript
Unless you are developing an extension, which does not have the same restrictions as a web page.