【问题标题】:JQtouch Ajax not able to send the same request twiceJQtouch Ajax 不能两次发送相同的请求
【发布时间】:2011-12-18 03:39:37
【问题描述】:

我正在使用 JQ mobile 创建一个应用程序,它有一个项目列表,您选择一个,然后它会将转到执行 ajax 请求的另一个页面。问题是如果我返回从列表中选择不同的项目然后回到第一个项目并选择它。它不会再次显示之前选择的项目。

这是我的代码

<div id="get">

    <script>


    $.ajax({    
        url: "http://s336087876.onlinehome.us/pmc/newapp/php/showCoupon.php?id=" + test,
        cache: true,
        success: function(data) {
        $('.coupon').html(data);
    },
        // Error handler
        error: function(req, status, err){
         alert('not working');
        }
    });

</script>

这里还有一个链接,你可以看到它在做什么。

http://s336087876.onlinehome.us/pmc/newapp/html/

【问题讨论】:

    标签: ajax jqtouch


    【解决方案1】:

    尝试在初始化中添加“cacheGetRequests: false”。欲了解更多信息http://code.google.com/p/jqtouch/issues/detail?id=35

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-12-11
      • 1970-01-01
      • 1970-01-01
      • 2013-01-19
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多