1

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%" />
Terry Harvey
  • 9,286
  • 1
  • 17
  • 22
Jothi
  • 14,720
  • 22
  • 68
  • 93

2 Answers2

4

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> 
  • in second line of your javascript code, you must do like it: var url = 'detail.html'+ idVal; because ?id= included in idVal – mirzaei Aug 31 '15 at 08:17
0

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.

Pointy
  • 405,095
  • 59
  • 585
  • 614
  • But i tried defining url inside it for content and it worked. But sorting is not working properly. its misbehaving.. – Jothi Sep 02 '10 at 12:37
  • Well it's going to sort by the actual contents of the table cell. You can give the tag a "sortProperty" attribute and see if that helps. – Pointy Sep 02 '10 at 12:39