JSP ShowModel对话框和Dialogue参数在Edge/chrome浏览器中不起作用

e0bqpujr  于 2022-12-07  发布在  其他
关注(0)|答案(1)|浏览(248)

你能帮我解决一下关于显示对话框的问题吗?下面是一个片段。
ShowModel对话框和Dialogue参数在Edge/chrome浏览器中无效。

showModalDialog(IAllURLs_URL_CASH_DENOMS,window,"status:no;help:no;edge:raised;dialogWidth:800px;dialogHeight:600px;dialogLeft:0;dialogTop:0;center:yes");

   var pContents                                            = dialogArguments;
   var strDenoms                                            = pContents.strDenomValues;//loading the values from main Bank Transaction jsp to Temp.html page
   divisionName                                             = pContents.loginDivision;
   businessDate                                             = pContents.businessDate;
   strCurrCode                                              = pContents.strCurrCode;
   strCurrType                                              = pContents.strCurrType;
   strCurrAmount                                            = pContents.strCurrAmount;
   strDealType                                              = pContents.strDealType;

有人能帮我提供任何替代/建议吗?

luaexgnf

luaexgnf1#

该功能在您浏览器上可能已弃用,您能否检查您浏览器版本并从此处验证https://developer.mozilla.org/en-US/docs/Web/API/Window/showModalDialog
无论如何,它没有使用它的意义,因为大多数浏览器不支持。
备选方案:https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dialog
也可以尝试这个包,这似乎是一个有趣的选择https://github.com/niutech/showModalDialog

相关问题