Hello,
Sorry if this is blindly obvious, but I'm having a few problems with
this function in IE. It works fine in the Gecko browsers, Safari and
Opera.
The function is a simple ajax post which returns back the xml
document. I then use the 'each' function to display the text of each
'yelement'. Internet Explorer's ever helpful debugger informs me that
the 'Object doesn't support this property or method'.
Can someone tell me what is going on here? I'm not sure if I'm being
stupid or IE is being a pain (again). Any help would be great!
function ajax_post()
{
$.post("foo.php", { x: q }, function(xml){
$("yelement",xml).each(function(i){
alert($(this).text()); // this doesn't work in IE.
});
});
}
- Tom
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/