$(xml).find problem
$(xml).find problem
$.ajax( {type:"GET",
url: "newBlogPost.php",
dataType: "XML",
success:
function(xml) {
var v=$(xml).find('daysSince').text();
var t=$(xml).find('title').text();
if(v<14) {
var i='<img src="images/newpost2.png" /><br><span class="t1">' + t + '</span>';
$('#newpost').html(i);
}
}
}
);
The var t line above works in firefox as we expect but in chrome, ie, safari it doesn't work as expected (doesn't display the title from the xml file).
Perhaps I am using $(xml).find incorrectly.
The site is http://m.lvacmebers.com and the xml returning page is http://m.lvacmembers.com/newBlogPost.php to see the returned xml.
I must be doing something wrong. I will go rtfm while we see what you guys think. Thanks in advance.