如何在Display标签列链接中打开弹出窗口

时间:2010-09-02 10:43:03

标签: javascript displaytag

如何在点击显示标记列时打开popupwindow。

我有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%" />

2 个答案:

答案 0 :(得分:4)

如果它有帮助。以下是我使用的内容:

<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> 

答案 1 :(得分:0)

在页面加载后,您将不得不编写Javascript代码来查找列。为列提供类似“popupHere”的类值,然后在“load”处理程序中,您可以向单元格添加单击处理程序。