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 screenshot of Firebug:
alt text http://img842.imageshack.us/img842/2564/screenshot20100727at904.png
But when I remove the quotes from console.log ("data"), like this:
$.get('../entries/find_most_recent',
{name:$("#name").val()},
function(data) {
console.log(data);
});
Nothing appears in Firebug. The answer is just a string, as seen in the screenshot above. How do I access it? Thanks for reading.
source
share