Results 1 to 2 of 2
- 05-03-2007, 09:18 AM #1
Member
- Join Date
- Apr 2007
- Location
- Singapore
- Posts
- 29
- Rep Power
- 0
creating an image button when using struts
Below is one of the column of my table:
For those images, i want to make them into button so that when i click on them i will be able to call the javascript for a pop up window and when click ok, it will do the action that i wanted.Java Code:<display:column title="Action" class="tabletext3" headerClass="mainpanel2header"> <logic:match value="1" name="researchPaper" property="docStatus"> <img src="<c:out value='${imagesPath}'/>/icon_unpublish.gif" alt="Unpublish" border="0" width="13"> </logic:match> <logic:notMatch value="1" name="researchPaper" property="docStatus"> <img src="<c:out value='${imagesPath}'/>/icon_modify.gif" alt="Modify" border="0" width="13"> <img src="<c:out value='${imagesPath}'/>/icon_publish.gif" alt="Publish" border="0" width="13"> <img src="<c:out value='${imagesPath}'/>/icon_delete.gif" alt="Delete" border="0" width="13"> </logic:notMatch> </display:column>
Below is the javascript i used for the pop up window:
Since i'm using struts, anyone knows how to do the image button?Java Code:function confirmUnpublish() { var r=confirm("Click OK to confirm unpublish") if (r) { url=" "; window.location.href=url; } else { return false; } }Last edited by yuchuang; 05-03-2007 at 09:25 AM.
- 05-03-2007, 04:48 PM #2
Member
- Join Date
- Apr 2007
- Location
- Indiana
- Posts
- 83
- Rep Power
- 0
Similar Threads
-
Converting multiple banded image into single banded image... Image enhancement
By archanajathan in forum Advanced JavaReplies: 0Last Post: 01-08-2008, 05:29 PM -
how to display image in jsp page(Struts)
By rama6262 in forum Advanced JavaReplies: 1Last Post: 12-21-2007, 07:50 AM -
Struts - Solutions for creating Wizards
By Larry in forum Web FrameworksReplies: 1Last Post: 07-11-2007, 05:59 PM -
Struts, Some API to obtain wide and the high one of an image?
By Eric in forum Web FrameworksReplies: 1Last Post: 06-07-2007, 05:06 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks