Hey - can you provide an example site? It's unclear what might be wrong without seeing a response from the server. What is the value of xml when it comes back?
--John On Tue, Jul 15, 2008 at 9:34 AM, Tzury <[EMAIL PROTECTED]> wrote: > > The following example (from the jquery-doc-site) works fine with > firefox. > however, in IE7 $("element_name", xml).text() returns empty-string > anyone bypassed this issue in the past? > > $(document).ready(function() { > // generate markup > $("#rating").append("Please rate: "); > > for ( var i = 1; i <= 5; i++ ) > $("#rating").append("<a href='#'>" + i + "</a> "); > > // add markup to container and apply click handlers to anchors > $("#rating a").click(function(e){ > // stop normal link click > e.preventDefault(); > > // send request > $.post("rate.php", {rating: $(this).html()}, function(xml) { > // format and output result > $("#rating").html( > "Thanks for rating, current average: " + > $("average", xml).text() + > ", number of votes: " + > $("count", xml).text() > ); > }); > }); > }); >