$(function () {
var apiEndpoint = "https://www.myaddress.com/api/";
var getVersion = $.ajax({
url: apiEndpoint + "version/",
dataType: "JSON",
username: "myuser",
type: "GET",
password: "mypass"
});
getVersion.done(function (version) {
alert("HEY!!!!!!!!!!");
});
getVersion.fail(function () {
alert("I'm not invoked either!");
});
});
This code works fine on Chrome on my desktop, but when calling the page on iPhone no alerts show. Any ideas why this is?
I have a feeling it is because of the https://
, but why is this only a problem on iPhone and how can I resolve it?