ajax request not working in localhost wampserver

I have the following code

$.ajax({
        url: "../profile/companyAutocomplete.php",
        type: "GET",
        data: dataQuery,
        dataType: "json",
        success: function(responseData) {
            companySelectHandler(responseData);
        }
    });

which i getting called in the production server without any issues. But when I used it in my local system, the ajax request is not made. I have tried in all the browsers but its still the same. What would be the causing the issue? I need to print the ajax error message for the same. how can i achieve that.

Thanks.


Source: wampserver

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.