Displaying Extension Library Dialog box when page loads?
问题 Is there any way to display an extension pages dialog box when my page loads? 回答1: Add a <xp:scriptBlock /> with the following client-side code as its value : XSP.addOnLoad(function(){XSP.openDialog("#{id:dlgMessage}");}); ...just be sure to place the component outside any refresh targets, or it will launch the dialog again after every partial refresh event with a target that includes it. 回答2: Try adding a dojo.addOnLoad() (in a xp:scriptblock) that displays the dialog using CSJS: XSP