[jQuery] IE7, simple AJAX, and nothing!
<html>
<body>
Hello folks,
I'd appreciate insight to the fault in this function which works in FF
and Safari but not in IE7. Specifically, the returned ajax file is not
displayed.
<tt>function fnGetEbookFile(ni){
$.ajax({
url:
'textfiles/'+ni+'.txt',
type: 'GET',
cache: false,
dataType: 'html',
timeout: 2000,
success:
function(responsetxt){
$("#justlist,#tech").hide();
//alert("here ----"
+ responsetxt);
$("#stext").html(responsetxt).show();
}
});
}
</tt>As far as I can determine, the ajax call is successful - the alert
box show the returned html - but the display within the div
"stext" is not successful. I can see the
"stext" div in Firebug, so it is not as if its target doesn't
exist.
Thanks,
Bruce</body>
</html>