I am trying to send a AJAX request externally but it is not working, it works locally and all but as soon as i try and link it too an external webpage it does not do anything.
I have done some reading and i read that their is something called the same origin policy which does not allow access due to secruity reasons.
Which then made me read into jsonp but that gave me a syntax error
I am just trying to display information from my database which is not in any format such as JSON or XML.
Any help would be appreciated
Jquery
var dataString = 'gender=' + gender + '&Status=' + status + '&Lovethem1=' + lovethem +
'&Lovethem2=' + lovethem2 +'&Arrays=' + vals;
$.ajax({
type: "GET",
url: 'http://transformer.tamar.com/test.php',
jsonp: 'jsonp',
jsonpCallback: "myJsonMethod",
data: dataString,
success: function (result) {
var div = document.getElementById('update');
$('#update').show();
div.innerHTML = result;
//process the json here.
}
});