如何在点击显示标签列时打开弹出窗口。
我有 popupSmallWindow(this, 'update') javascript 来打开弹出窗口。我需要从显示标签中调用它。同时单击下面的列。
paramName = "propertyTypeId"
Value = propertyType.propertyTypeId
action= editType.action
并且需要调用 popupSmallWindow(this, 'update')
<displayEL:column property="propertyType.propertyTypeName"
titleKey="common.propertytype" sortable="true" style="width:30%" />
最佳答案
以防万一。以下是我使用的:
<display:column property="name" titleKey="org.name" href="javascript:openWin('#')" paramId="id" paramProperty="id"/>
<script>
function openWin(idVal)
{
idVal= idVal.substring(0, idVal.length-1);
var url = 'detail.html?id='+ idVal;
window.open(url,'samplePopup','width=600,height=300');
}
</script>
关于javascript - 如何在显示标签列链接中打开弹出窗口,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/3626306/