
Iam unable to open any HTML page other than my pc using XMLHttpRequest object. Plz help me?
Iam working behind a proxy server. Iam using the Firefox browser. my code follows: req = new XMLHttpRequest (); req.open ("GET", url, true); this url i initialized as "http://google.com
That a restriction of XMLHttpRequest. You can only retrieve data from the same domain as the page that is currently running. This means that if you running a script from localhost, only you can access other data available on the local server. Can not go to google.com localhost. There is no way around this in Firefox (Which is a safety feature). This is called "same-origin policy."
Google I/O 2009 – Google Data APIs & OAuth for OpenSocial..