issues sending ajax data
issues sending ajax data
I am sending data from one site to another using jquery. both are owned by me. When the submission on data from the requested site is successful, it echo 'Success' (Using php). only problem is I dont know what end is working correctly. here is my jquery code. if anyone could tell me if this is correct.
alert('Button Works!');
$.ajax({
type: "POST",
url: "http://play.anthonylgordon.com/usersessions/store",
data: 'data=Test',
success: function(msg){
alert( "Data Saved: " + msg );
}
});
i used the first alert to just identify if my button was working which it does. but I am not sure rather or not its reaching the remote site because it doesnt give me the second alert. all I do is echo success on the page. thats is it. not sure if that is enough to notify myself that it was a success