PHP Ajax调用没有显示IE7或8 [英] PHP ajax call not showing ie7 or 8

查看:90
本文介绍了PHP Ajax调用没有显示IE7或8的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有以下调用它根本没有在IE7或8个工作 - 但完全在一切

I have the following call which simply does not work in ie7 or 8 - but perfectly in everything else!

<script>
    $('#wishlist_icon').load('/add_wishlist.php',{
       userfromcookie:"<? echo $userfromcookie; ?>",
       PRid:"<? echo $PRid; ?>",
       cat_id:"<? echo $cat_id; ?>",
       item:"<? echo $title2; ?>"
    });
</script>

我试图也以下(添加随机号码的URL),它并没有解决这个问题:

I have tried also the following (adding random number to URL) which did not fix the problem:

$random_num_for_ie = rand(5, 1500);

<script>
    $('#wishlist_icon').load('/add_wishlist.php?num_ie=<? echo $random_num_for_ie; ?>',{
       userfromcookie:"<? echo $userfromcookie; ?>",
       PRid:"<? echo $PRid; ?>",
       cat_id:"<? echo $cat_id; ?>",
       item:"<? echo $title2; ?>"
    });
</script>

任何想法如何,我可以做这项工作,因为它是一个重要的一块页面。

Any ideas how I can make this work as it's a vital piece of the page.

推荐答案

发现这个问题......我觉得不真实,一个流浪HTML的一部分是造成问题,也就是爱!

Found the issue... I find it unreal that a stray piece of html was causing the issue, loving ie!

这篇关于PHP Ajax调用没有显示IE7或8的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆