0

I am having a local website which needs to post some data to another server in the internet. While it was ok to post these http requests while remaining in the same domain and in the same machine, it is not responding to such requests when I am trying to post some data from one machine to another.

If I have the following code:

<form name="formOne" id="formOne" method="post" 
action="http://someUrl.com/acceptRequest.php">
<input .... />
<input .... />
<input name="submitButton" id="submitButton" type="submit" />
</form>

Manually clicking on the submit button is allowing me to post the matter contained in the form to be posted to the third party website, AJAX through jQuery is not allowing the automation of the same thing via

$.post ("http://someUrl.com/acceptRequest.php", 
{data:data}, 
function(resultSet) { ... }, 
"html");
  • 1
    Possible duplicate of [jQuery AJAX cross domain](http://stackoverflow.com/questions/3506208/jquery-ajax-cross-domain) – Mike Scotty Dec 21 '16 at 08:33
  • 1
    Is your Ajax code triggered when submit button clicked? Based on the code it simply just coded and not being called or trigger to any element. – J.C Dec 21 '16 at 08:37

0 Answers0