从文件读取jquery模式弹出窗口
对于下面的代码 location/home/form.php中有一个表单。如何使用下面的代码打开此表单。例如,模式对话框从文件读取jquery模式弹出窗口,jquery,jquery-plugins,jquery-selectors,modal-dialog,Jquery,Jquery Plugins,Jquery Selectors,Modal Dialog,对于下面的代码 location/home/form.php中有一个表单。如何使用下面的代码打开此表单。例如,模式对话框 $dialog.html(data) .dialog({ autoOpen: true, position: ['right','bottom'] , title: 'Emp Form', draggable: false, width : 300, heigh
$dialog.html(data)
.dialog({
autoOpen: true,
position: ['right','bottom'] ,
title: 'Emp Form',
draggable: false,
width : 300,
height : 400,
resizable : false
});
$dialog.dialog('open');
谢谢……如果要打开现有页面,可以使用iframe在对话框中加载内容 假设$dialog.html设置对话框的html内容,则可以执行以下操作:
$dialog.html('<iframe id="myFrame" src="/home/form.php"></iframe>')
$dialog.html(“”)
您也可以使用load()
:
在多次初始化对话框时要小心;我不记得正常的jQueryUI对话框是否检测到了这一点。当然可能
$('#dialogThing).load("/home/form.php").dialog({ ... }).dialog("open");