Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/jquery/83.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php ie8兼容模式下的jquery负载问题_Php_Jquery_Load - Fatal编程技术网

Php ie8兼容模式下的jquery负载问题

Php ie8兼容模式下的jquery负载问题,php,jquery,load,Php,Jquery,Load,我在我的Web应用程序中使用jquery的加载插件 以下是我的代码: $.post("/ecommerceV2/"+langcode+"/ecommerce/sortPromo",{promotypeid: $(v).val()},function(response){ if (response.same == 'yes'){ $('#infoLegende').show(); $('#infoLegende').html('no' + $('#legende'+$(v).val

我在我的Web应用程序中使用jquery的加载插件

以下是我的代码:

$.post("/ecommerceV2/"+langcode+"/ecommerce/sortPromo",{promotypeid: $(v).val()},function(response){
  if (response.same == 'yes'){
   $('#infoLegende').show();
   $('#infoLegende').html('no' + $('#legende'+$(v).val()).html());
  }else{
   $('#infoLegende').hide();
   $('#legende'+$(v).val()).addClass('legendeBackground');
   $('#legende'+$(v).val()).removeClass('legendeTest');
   $('.assortiment').fadeOut('slow');
    $('.assortiment').load("/ecommerceV2/"+langcode+"/ecommerce/volledigAssortiment .assortiment",{assortiments: response.assortiments},function(){ $('.assortiment').fadeIn('slow');
  }
 },"json");
.什锦是一张桌子。 这段代码在ie8、firefox、chrome。。。只有ie8兼容模式不会在我的表中显示结果

有人能帮我吗

更新:

<div id="lijst">
    <div id='assortimentHeader'></div>
<table summary='assortiment' class='assortiment' width=805 id='assortiment' cellspacing=0>
<tr id='headerAssortiment' >
<th width=20 style='text-align: center;'>Code</th>
<th width=200 style='text-align: center;'>Omschrijving</th>
<th width=40 style='text-align: right;'>Prijs</th>
<th width=40 style='text-align: right;'>Adv.prijs</th>
<th width=35 style='text-align: right;'>Marge</th>
<th width=20 style='text-align: center;'>Bestel</th>
<th width=6 style='text-align: center;'>B1</th>
<th width=6 style='text-align: center;'>B2</th>
<th width=6 style='text-align: center;'>B3</th>
</tr>
<tr class='artikelgroep'><td colspan='9'><img alt='add' src='/ecommerceV2/assets/images/icons/add%202.png' style='float:left;' /><b>CHAMPIGNONS</b></td></tr>
<tr align='center' class="artikelRijDonkerPromo1">
<td width=20>5905</td>
<td width=200 class='omschrijving' style='cursor: pointer; text-align: left;'>CHAMP. (12X250GR)DEKSEL<img alt='foto' src='/ecommerceV2/assets/images/camera.png' style='float: right;' width='25' height='17' /><input type='hidden' class='artikel' value='5905' /></td>
<td width=40 style='text-align: right;'>&euro; 0.73</td>
<td width=40 style='text-align: right;'>&euro; 1.19</td>
<td style='margin-left: 20px; text-align: right;' width=35>34.97%</td>
<td width=20><input type='text' style='text-align: right; border: 1px #d9d9d9 solid;' size=5 class='aantal' name='aantal[5905]' /><input type='hidden' class='artikel' value='5905' /></td>
<td width=6>1</td>
<td width=6></td>
<td width=6>1</td>
</tr>
</table>
</div>

代码
OMSCHRIJING
普里斯
Adv.prijs
玛吉
贝斯特
地下一层
地下二层
地下三层
香比农
5905
咀嚼。(12X250GR)德克塞尔
&欧元;0.73
&欧元;1.19
34.97%
1.
1.

您可以向我们显示任何错误吗

首先,您的.load函数可能缺少一个结束括号?我修改了你的代码,并说明了我的做法,更容易看到括号,等等(我发现)。这是我的结论,括号现在匹配。虽然如果这是一个问题,我很惊讶它在任何浏览器中都能工作

$.post("/ecommerceV2/"+langcode+"/ecommerce/sortPromo",{promotypeid: $(v).val()},function(response)
{
    if (response.same == 'yes')
    {
        $('#infoLegende').show();
        $('#infoLegende').html('no' + $('#legende'+$(v).val()).html());
    }
    else
    {
        $('#infoLegende').hide();
        $('#legende'+$(v).val()).addClass('legendeBackground');
        $('#legende'+$(v).val()).removeClass('legendeTest');
        $('.assortiment').fadeOut('slow');
        $('.assortiment').load("/ecommerceV2/"+langcode+"/ecommerce/volledigAssortiment .assortiment", {assortiments: response.assortiments} , function()
        { 
            $('.assortiment').fadeIn('slow');
        });
    }
} ,"json");

尽管我建议修复代码,但解决方法是确保页面在默认情况下不会以IE8兼容模式呈现。您可以在网页的头部执行此操作:

<head><meta http-equiv="X-UA-Compatible" content="IE=8" /></head> 


我不得不问,为什么要使用IE 8的“兼容性”模式?我的Web应用程序必须在ie8、ie7。。。并使ie8兼容模式模拟我使用它时的ie7行为。ie8兼容模式!==IE7。在实际的IE7中试用,因为这实际上可能不是问题?我在IE7中试用过,它给我的效果与在兼容模式下相同。谢谢你的回答,但这是一个输入错误。你的代码和我的完全一样,但在ie7中仍然没有任何作用。这就是问题所在。我没有错在firefox、chrome、ie8。。。我得到我的桌子,在ie7中我的桌子不会出现。我已经下载了ie的debugbar并检查了js返回的内容,它返回了我的结果,但它没有显示在表中。可能是css错误,但我已经运行了一个验证程序,它没有给我任何错误。你有一个公共URL的问题吗?不,我没有。我不能公开,因为这是为了我的工作但是我可以粘贴一些关于我的表是如何生成的代码。在我的问题中,你可以看到我的表谢谢我现在已经这么做了,但这并不能解决我在ie 7中的问题