|
AJax code is working in india but bot working in Germany
Hi,
this is very urgent post, i am using below code in my apps and this is working fine in india but when same code put in client system i.e Germany not working any clue is this code is browser locale or etc.
// Logout code start
var xmlObj = false;
var url="http:www.guruji.com/CentralLogout";
function logoutReload()
{
if(!url || url.length==0){
alert('Logout URL not set!');
return false;
}
xmlObj = false;
if (typeof XMLHttpRequest != "undefined") { // Mozilla, Safari,...
xmlObj = new XMLHttpRequest();
} else if (typeof window.ActiveXObject) { // IE
try {
xmlObj = new ActiveXObject("Msxml2.XMLHTTP");
} catch (e) {
try {
xmlObj = new ActiveXObject("Microsoft.XMLHTTP");
} catch (e) {document.location = url;}
}
}
if (!xmlObj) {
alert("Cannot create XMLHTTP instance");
return false;
}
try{
xmlObj.onreadystatechange = stateChanged;
xmlObj.open("POST",url,true);
xmlObj.send(url);
}catch(e){
alert(e+":"+"Unable to post the request");
}
}
function stateChanged()
{
if (xmlObj.readyState==4){
document.location = document.location;
}
}
// Logout code end
thx
|