I am trying to extract XML from the Gmail API. I still have this:
$.ajax({ url: "https://mail.google.com/mail/feed/atom/", success: function(data) { console.log(data.responseText); } });
I know for sure that the data in the array has a value called responseText , because the console tells me this when I get my code to register the data. However, when I try to log data.responseText , it logs the data and ignores the fact that I specified the parameter (it does not say that responseText is not defined). What am I doing wrong?
Edit: here is a screenshot of what the data console says:
Edit, in response to Kevin: I tried this:
$.ajax({ url: "https://mail.google.com/mail/feed/atom/", dataType: "xml", success: function(data) { console.log($("feed fullcount",data).html()); } });
he says that he "cannot call the replace method from undefined": o
Bluefire
source share