相关疑难解决方法(0)

jQuery模式对话框和jqGrid

如何在jqGrid中使用Jquery模式确认?说当我提交我的条目时,它会弹出一个模态对话框,并显示带有发送到服务器的消息的名称.

我的方法

$("#dialog-confirm").dialog({
            autoOpen:false,
            resizable:false,
            height:180,
            modal:true,
            buttons:{
                 'Confirm': function(){
                            var ids =jQuery("#list10").jqGrid('getGridParam','selarrrow');
                                $.ajax({
                                  type: "POST",
                                  url: "url&names="+ids,
                                  data: JSON.stringify(ids), 
                                  dataType: "json"
                            });
                                },
                            'cancel': function(){
                                    $(this).dialog('close');
                                    }
        }
        });
        });
Run Code Online (Sandbox Code Playgroud)

我的HTML:

<div id="dialog-confirm" title="Confirm">
        <p><span class="ui-icon-alert" style="float:left; margin:0 7px 20px 0;"></span>Are you sure want to cancel(or send this names)#names?</p>
    </div>
Run Code Online (Sandbox Code Playgroud)

在那个对话框中我也需要发送这些名称......但是这种方法不会从我选择将其发送到服务器的网格中给出我的名字.

jquery modal-dialog jqgrid confirmation

5
推荐指数
1
解决办法
3万
查看次数

标签 统计

confirmation ×1

jqgrid ×1

jquery ×1

modal-dialog ×1