简体   繁体   English

在NetSuite中创建模式弹出窗口

[英]Create modal popup in NetSuite

I have a requirement to show modal popup on in netsuite on button click. 我需要在按钮单击时在netsuite中显示模式弹出窗口。 currently I open a window using client script 目前,我使用客户端脚本打开一个窗口

var url =  nlapiResolveURL('SUITELET','customscript_id','customdeploy_id',null);
window.open(url);

Now I want to make this window as modal popup to prevent accessing the parent window. 现在,我想将此窗口设为模式弹出窗口,以防止访问父窗口。 Please help. 请帮忙。

You'll need to use existing solutions like Bootsrap or Jquery UI's Modal Window . 您需要使用现有的解决方案,例如Bootsrap或Jquery UI的Modal Window

If you want to be more elegant and avoid dependencies, you can create your own light implementation. 如果您想要更优雅并且避免依赖,则可以创建自己的light实现。 Please, refer to how to make window.open pop up Modal? 请参考如何使window.open弹出Modal?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM