Jquery UI对话框窗体在我输入之前不会等待。我期待的功能是像Javascript提示。我有这样的要求,如果filename是空的,打开一个对话框,这样用户就可以填写详细信息并继续保存,但执行不会等到我输入。
//code steps
if(testcasefilename==""){
open a dialog, enter details, get the details on click of OK button, assign it to filename
}
//use the filename and proceed to saving.
saveForm(filename){
}
//code编辑:我使用jquery UI模式对话框确认http://jqueryui.com/demos/dialog/#modal-confirmation与下拉列表和文本输入,以便用户可以选择下拉列表,提供文本值。我们的要求不允许使用jconifrm或javascript提示符。请让我知道有没有办法使用Jquery UI对话框来满足我的需求
发布于 2010-12-12 20:42:11
您应该使用jQuery alert插件。
例如:
if(testcasefilename==""){
jConfirm('Enter a file name', 'Confirmation Dialog', function(r) {
saveForm(r);
});
}https://stackoverflow.com/questions/4421662
复制相似问题