Is it possible to send a parameter (eg. a get variable) with getJSON to a php file, and if so how to do it?
The code below doesn’t work, but hopefully it shows what I try to accomplish.
var url = "http://www.address.com/"
$.getJSON('http://anotheraddress.com/messages.php?url=+escape(url))', function(data) {
// code here
});
$.getJSON accepts another parameter for data: