3

My ajax call is resulting in error. Here is the info that I could get in error callback:

readyState: 0
responseText: ""
status: 0
statusText: "error"

What does that mean? What am I doing wrong?

Here is my ajax call:

var ajaxurl = '../mainDir/server.cfc?param1=123&param2=234&method=updateMyInfo';
$.ajax({
    url: ajaxurl,
    dataType:"text",
    success: function( data ) {
        alert('success');
    },
    error: function( xhr, ajaxOptions, thrownError ) {
        alert('ERROR');
    }
});
Adil Malik
  • 6,279
  • 7
  • 48
  • 77

1 Answers1

0

The Problem is that you are running the page without deploying into server. So ajax request is taken as Cross domain call.

Vinod Kumar
  • 75
  • 10