Results 1 to 2 of 2
- 12-17-2011, 12:40 AM #1
Member
- Join Date
- Dec 2011
- Posts
- 2
- Rep Power
- 0
TABLEDATA---onclick--> SERVLET with TABLEDATA id/name/etc.
Hi there!
I'm encountering a problem while trying to give table-cells of a html table some button-like charakter.
So I have this 14x7 table in my .jsp. All the TDs have the structure you can see below. What I'd like to do, is clicking on one of the TDs bringing me to my servlet and having a reference of what i clicked on in there (no matter if its the (name/value/ <- can those even be part of a TD's signature?) id of the cell).
Is that even possible?
Thanks a lot in advance!
XML Code:<td onmouseover="style.backgroundColor='#EEEEEE'" onmouseout="style.backgroundColor='#FFFFFF'" onmousedown="style.backgroundColor='#DDDDDD'" onclick="location.href='controller'" id="(tag*100+std)"> <%= stdpl.getterm((tag*100+std)) %></td>
- 12-17-2011, 12:16 PM #2
Member
- Join Date
- Dec 2011
- Posts
- 2
- Rep Power
- 0
Re: TABLEDATA---onclick--> SERVLET with TABLEDATA id/name/etc.
come on guys, i really need help here! i know you can do it =)
ok maybe in other words:
when i add a onclick to a html component and the onclick is defined as:
onclick="location.href='controller'"
or
onclick="location.href='dialog.jsp'"
, how do i get the component which sent me to my controller or dialog.jsp (in matter of name, id or anything else)?
or is there another way to solve my problem?
thanks a lot!Last edited by cajax; 12-17-2011 at 01:27 PM.
Similar Threads
-
onclick event in jsp
By happy in forum Java ServletReplies: 4Last Post: 06-30-2011, 09:22 AM -
help with onclick
By unplugged in forum Java AppletsReplies: 4Last Post: 12-15-2009, 12:24 AM -
use of onclick function
By m4tt in forum New To JavaReplies: 1Last Post: 02-16-2008, 03:03 AM -
JButton onClick?
By Joe2003 in forum AWT / SwingReplies: 2Last Post: 01-06-2008, 03:04 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks