how to open popup window in Display tag column link
How to open popupwindow while clicking on Display tag column.
I have popupSmallWindow(this, 'update') javascript to open the popup. i need to call this from display tag.while 开发者_运维技巧clicking this below column.
paramName = "propertyTypeId"
Value = propertyType.propertyTypeId
action= editType.action
And need to call popupSmallWindow(this, 'update')
<displayEL:column property="propertyType.propertyTypeName"
titleKey="common.propertytype" sortable="true" style="width:30%" />
In case it helps. the following is what I use :
<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>
You're going to have to write Javascript code to find the column(s) after the page loads. Give the column a class value like "popupHere", and then in your "load" handler you can add a click handler to the cell.
精彩评论