/    Sign up×
Community /Pin to ProfileBookmark

Permission denied

Hi,
I am getting Permission denied script error when i get Ip address of a visitor using SSI.

Please help to solve this.

Thanks in advance.

to post a comment
JavaScript

1 Comments(s)

Copy linkTweet thisAlerts:
@nithuauthorNov 12.2007 — Hi,

This is the script I am using,

<script>

var xmlHttp;

function showCustomer() {

var ip = '<!--#echo var="REMOTE_ADDR"-->';

myform.ipaddr.value=ip;

var str = myform.ipaddr.value;
var pageurl = top.parent.window.document.URL;
//alert(pageurl);
xmlHttp=GetXmlHttpObject();
if (xmlHttp==null) {
alert ("Browser does not support HTTP Request");
return;
}

var url="http://59.144.49.75:8088/MindSupport/monitor/monitor_urlip.jsp";
//var url="monitor_urlip.jsp";
url=url+"?q="+str+"&pageurl="+pageurl;

// url=url+"&sid="+Math.random();

xmlHttp.onreadystatechange=stateChanged;

//alert('1');

[B] xmlHttp.open("GET",url,true);[/B]

xmlHttp.send(null);
}
function stateChanged() {
if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") {
// document.getElementById("txtHint").innerHTML=xmlHttp.responseText;
}
}
function GetXmlHttpObject() {
var objXMLHttp=null;
if (window.XMLHttpRequest) {
objXMLHttp=new XMLHttpRequest();
} else if (window.ActiveXObject) {
objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP");
}
return objXMLHttp;
}

</script>


I am getting permission denied at bolded lines.

Help to solve this.
×

Success!

Help @nithu spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.17,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...