Hello all,

I am currently working on a script that posts data to an API using ajax. The script is basically working as a email sign up box, and when I submit the form, I actually am able to successfully send data to the API but I still get an error response.

Below is my ajax code, any advice would be great:

Code JavaScript:
    url: url,
    type: "jsonp",
    error: function(respText) {
            alert("Error:" + respText.statusText);
    success: function(succText) {
            alert("Success" + succText.statusText);
return false;

All submissions return the error part, which gives me in an alert box that displays "Error:"