Question

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%" />
Was it helpful?

Solution

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.

OTHER TIPS

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> 
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top