Internet Explorer似乎忽略了这个ajax函数调用(下面),但它在FF中工作正常吗?jquery ajax调用不工作在IE 7或8,但在Firefox中工作
说明有人请...
<script type="text/javascript">
function ajax_request(PartNum,InText) {
var str=PartNum;
str=str.replace(".","_");
strHTML = $('#image-placeholder'+str).html();
if (strHTML == '<p></p>')
{
$('#image-placeholder'+str).html('<p><mg src="/images/catalog/items/'+PartNum+'.gif" /></p>');
$('#text-placeholder'+str).html('<p>'+InText+'</p>');
}
else
{
$('#image-placeholder'+str).html('<p></p>');
$('#text-placeholder'+str).html('<p></p>');
}
}
</script>
阿贾克斯我不?看不到ajax ...请澄清一下,你怎样调用这个函数? – Joel 2009-08-21 17:03:02
我同意@Joel ... ajax请求在哪里?似乎是我们的onSuccess回调。 – localshred 2009-08-21 17:27:47
我想这就是所有的语义问题,jQuery的调用不起作用在IE中,是更好的? – Lyle 2009-08-21 17:35:25