douqiao5543 2014-03-19 05:29
浏览 36

即使在成功的ajax帖子之后也无法显示div弹出窗口

I have a div

<div id="pop2" class="pop-up1" style="display:none;">
  <div class="popBox1">
    <div class="popScroll1">
      <h2></h2>
      <p id="p1_id"></p>
    </div>
    <a href="#links" class="close"><span>Close</span></span></a>
  </div>
  <a href="#links" class="lightbox1">Back to links</a>
</div>

I have an external file edit_invoice_details.php in which I want to post some data which I am doing through this jquery function

<script>
    $(document).ready(function(){
    $('table tbody tr').dblclick(function(){
        //alert($("#myId2").text());
        //showeditDiv($( "#myId2" ).text());
        var invid=$("#myId2").text();
        var pid=$("myId").text();
        var dataString = 'inv_id='+ invid+'prod_id='+pid;
        $.ajax({
        type: "POST",
        url: "edit_invoice_details.php",
        data: dataString,
        cache: false,
        success: function(html)
        {           
            alert("success");
            $("#pop2").show();
            $("#p1_id").html(html).show();
        }
        });
    });
});
</script>

I want such a table such that when someone double clicks on it the div should open. Success alert is working fine. but I am not able to show that div. The divs content should be edit_invoice_details.php. Response text maybe

Any help is appreciated

  • 写回答

3条回答 默认 最新

  • douyi1966 2014-03-19 05:31
    关注

    I think you need to use a & here:

    var dataString = 'inv_id='+ invid+'&prod_id='+pid;
    
    评论

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度