Announcement Announcement Module
Collapse
No announcement yet.
using image as delete option Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • using image as delete option

    hi all..


    i have the following line in jsp ( actually this is a for each loop
    value will be different for differnt row )

    Code:
    										<td width="10%" align="center" class="tr4">
    											<INPUT type="image" src="images/button_Delete.gif" name="delete" value="<core&#58;out value="$&#123;purchaseOrderLineItemList.materialId&#125;"/>">
    										</td>

    i am checking if it was clicked as below

    Code:
    if &#40;request.getParameter&#40;"delete.x"&#41;!= null&#41;&#123;....&#125;
    i need to know how to get the value of that button ..

    or how to detect that id ?
    Thanx

  • #2
    Just move the value to a hidden input. E.g.

    Code:
    <input type="hidden" name="delete" value="<core&#58;out value="$&#123;purchaseOrderLineItemList.materialId&#125;"/>">
    <INPUT type="image" name="delete" src="images/button_Delete.gif">

    Comment

    Working...
    X