I have been attempting to connect JSON data through AJAX but have encountered numerous issues such as cross-domain problems and receiving port non-existence. Can someone suggest an alternative method for posting data to the server using the getJSON method or any other working approach?
requestNumber = JSONRequest.post(
"https://json.penzance.org/request",
{
user: "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="8eeae1edfae1fceff8effaeffccef7efe6e1e1a0ede1e3">[email protected]</a>",
t: "vlIj",
zip: 94089,
forecast: 7
},
function (requestNumber, value, exception) {
if (value) {
processResponse(value);
} else {
processError(exception);
}
}
);
In this function, I am not experiencing any success. Can anyone provide assistance with this issue?