jQuery in Action, 2nd edition*
The moose likes Struts and the fly likes how to get the row object of display object in javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of JavaScript Promises Essentials this week in the JavaScript forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "how to get the row object of display object in javascript" Watch "how to get the row object of display object in javascript" New topic
Author

how to get the row object of display object in javascript

aman thind
Ranch Hand

Joined: Jun 29, 2007
Posts: 71
Hi,

I have a display tag in my jsp. When user clicks on a particular row, i was to call a javascript function and check the row selected and perform some functions like changing the look of row and get some data from it and compare with some thing else.

There are a few examples which i found after googling but none of them seems to be working Any idea how to achieve this?

Thanks in advance.

Aman


Aman Thind
SCJP,SCWCD
JAVA utte mar JAVA,mit JAVA
Chris Montgomery
Ranch Hand

Joined: Jan 14, 2004
Posts: 141
Have you investigated jQuery for this?
aman thind
Ranch Hand

Joined: Jun 29, 2007
Posts: 71
Found the soln. I used getElementByTagName("tbody") which is dynamically generated by display tag.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to get the row object of display object in javascript