Home     |     .Net Programming    |     cSharp Home    |     Sql Server Home    |     Javascript / Client Side Development     |     Ajax Programming

Ruby on Rails Development     |     Perl Programming     |     C Programming Language     |     C++ Programming     |     IT Jobs

Python Programming Language     |     Laptop Suggestions?    |     TCL Scripting     |     Fortran Programming     |     Scheme Programming Language


 
 
Cervo Technologies
The Right Source to Outsource

MS Dynamics CRM 3.0

Ajax Programming

Permission denied error


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

The port on the url is what is causing it.

Eric

On 3/9/07, rohit <rohit@yahoo.com> wrote:

Add to del.icio.us | Digg this | Stumble it | Powered by Megasolutions Inc