使用artdialog创建一个dialog,并在其中添加一个按钮,这个按钮将把从url中返回过来的html表单thesis_approve序列化,并提交给服务器,但是问题现在这个jquery貌似无法选定框架中的元素,求高手指教,如何选定?
- JScript code
art.dialog.open(url,{ title: "审核论文选题", width: 800, height: 700, button:[{ name:"批准", focus: true, callback: function(){ $thesis_approve = $("#thesis_approve"); values = $thesis_approve.serialize(); $.post(URL + '/do_approve',values,function(data){ art.dialog.tips(data,1); }); art.dialog.opener.setTimeout("window.location.reload();", 1000); } }], cancelVal: '关闭', cancel:true });
------解决方案--------------------
http://blog.csdn.net/theforever/article/details/6126635
------解决方案--------------------
补充下,artDialog中可以在callback等回调事件中使用
this.iframe.contentWindow获取当前对话框的iframe