$.get("test.php", function(data) {
alert("Data Loaded: " + data);
});
What exactly can I expect to be inside the data parameter of the callback function after requesting for test.php
?
Secondly, if I'm querying my database in test.php
, what sort of code would I need to pass on the values of the query to the parameter data inside my callback function?
I'm confused about the connection between sending the request and what the callback function 'gains' after the request succeeds and it is executed.