What the XML looks like:
<?xml version="1.0" encoding="utf-8"?>
<ping>
<pong>Hello world</pong>
</ping>What my jQuery looks like:
$(document).ready(function(){
var userStatus;
$.ajax({
type: "GET",
url: "/ping/user_status/",
dataType: "xml",
success: function(xml) {
userStatus = $(this).find('pong').text();
$('#userstatus').html(userStatus);
}
});
});
Any clues where I might be going wrong?

Sign In
Register
Help



MultiQuote