javascript - 如何在显示标签列链接中打开弹出窗口

标签 javascript displaytag

如何在点击显示标签列时打开弹出窗口。

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

相关文章:

javascript - 如何进行 AJAX 调用

javascript - jquery addClass 添加子类不起作用

java - 如何格式化导出 pdf 中的显示标签总值行?

java - 使用 struts 显示标签在页面之间导航时出错

javascript - jquery keypress() 事件不适用于 keyup()

javascript - 为什么我的回调函数不运行?

java - 如何隐藏显示标签中的行?

struts - 如何删除在 Struts 1.3 的显示标签中找不到要显示的任何内容

javascript - 为什么我的 Minimax 算法没有产生正确的移动?

java - 如何在Struts2中使用Displaytags传递Id值来执行编辑操作?