> Hi ,
> I know that this has been discussed a lot of times but am unable to
> dig into the problem.
> I am getting a permission denied error when i am making an ajax call.
> I have made sure that the call is not cross domain. The code works
> fine when in my local environment but when I transfer it to UAT i get
> this error.
> The only thing that changes when I transfer to UAT is the URI which is
> local within the UAT server.
> The code snippet is pasted below
> ajaxurl="http://somedomain:9080/labs/detail.do?date="
> retrieveURL(ajaxurl+ '&','detailForm') ;
> function retrieveURL(url,nameOfFormToPost) {
> //get the (form based) params to push up as part of the get request
> url=url+getFormAsString(nameOfFormToPost);
> //Do the Ajax call
> if (window.XMLHttpRequest) { // Non-IE browsers
> req = new XMLHttpRequest();
> req.onreadystatechange = processStateChange;
> try {
> req.open("GET", url, true); //was get
> } catch (e) {
> alert("Problem Communicating with Server\n"+e);
> }
> req.send(null);
> } else if (window.ActiveXObject) { // IE
> req = new ActiveXObject("Microsoft.XMLHTTP");
> if (req) {
> req.onreadystatechange = processStateChange;
> req.open("GET", url, true);
> req.send();
> }
> }
> TIA
> Rohit