sportsbet35
New Member
- Messages
- 4
- Reaction score
- 0
- Points
- 0
Hi all,
I'm new to X10Hosting. I have the following piece of codes that always works for me on other host servers but not here on X10Hosting. Does anybody here know why the codes will only work with "url=http://www.google.com/" but not with some other URLs like www.yahoo.com or www.msn.com? Is there by any chance that X10Hosting happens to block them for some reason?
Thank you very much.
P.S.: "GetFile.php" is a very small external program written in cURL that allows cross-domain access.
I'm new to X10Hosting. I have the following piece of codes that always works for me on other host servers but not here on X10Hosting. Does anybody here know why the codes will only work with "url=http://www.google.com/" but not with some other URLs like www.yahoo.com or www.msn.com? Is there by any chance that X10Hosting happens to block them for some reason?
Thank you very much.
P.S.: "GetFile.php" is a very small external program written in cURL that allows cross-domain access.
Code:
var XMLHttpRequest;
if (window.XMLHttpRequest)
HTTPrequest = new XMLHttpRequest();
else
try {
HTTPrequest = new ActiveXObject("MSXML2.XMLHTTP.3.0"); // for older Internet Explorer versions before 7.0
}
catch (exception) {
window.alert("Error: XMLHTTP not supported by current browser.");
return (-1);
}
XMLHttpRequest.open("GET","[COLOR=darkgreen]GetFile.php[/COLOR]?url=http://[COLOR=red]www.google.com[/COLOR]/");
XMLHttpRequest.onreadystatechange = function()
{
if (XMLHttpRequest.readyState == 4 && XMLHttpRequest.status == 200)
window.alert("[" +XMLHttpRequest.responseText.substr(0,500) +"]");
}
XMLHttpRequest.send(null);