View Single Post
  #3 (permalink)  
Old 09-03-2007, 09:34 AM
oubless oubless is offline
Newbie
 
Join Date: May 2007
Posts: 22
Credits: 0
Rep Power: 6
oubless is on a distinguished road
Default

Quote:
Originally Posted by CygnetGames View Post
Just a guess, but do you need the http:// to tell it to not look on your server?
So you would change:
Code:
var URL = "www.google.com";
to:
Code:
var URL = "http://www.google.com";
not sure this will work either ...
I think for security purposes it is stopped. AJAX works on the same domain only ( or at least when I tried to use xmlHttpRequest on other domain it failed with a security reason ). Using it with other domains allows scripting between different domains which is considered security hole.
Again - not 100% sure about that, but I think it is so! scripting between different domains is supposed be forbidden even when using pop-up, frames and iframes.

read this one, might be helpful:
Cross-Domain Proxy - Ajax Patterns
Reply With Quote