When I run the following XmlHttpRequest
$.get('../entries/find_most_recent',
{name:$("#name").val()},
function(data) {
console.log("data");
});
The result can be seen in this Firebug screenshot:
But when I remove the quotes from console.log("data"), like so:
$.get('../entries/find_most_recent',
{name:$("#name").val()},
function(data) {
console.log(data);
});
Nothing comes up in Firebug. The response is just a string, as can be seen in the screenshot above. How do I access it? Thanks for reading.