This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Customer Requirements for Developers and have Marcho Behler on-line!
See this thread for details.
The moose likes HTML, CSS and JavaScript and the fly likes parsing the vector object? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "parsing the vector object?" Watch "parsing the vector object?" New topic

parsing the vector object?

T sandya
Ranch Hand

Joined: Aug 03, 2006
Posts: 64
I have one doubt on parsing the java object using the javascript.

below is the scenario:

I have one table like below:

First row is columns and after onwards is the data:

this html table data is created in jsp by reading the vector object.

but i want to know is , when i click the SELECT button i want to get the list of link No's for the selected Name.

already we have the vector object, just we need to write or parse the object using the javascript.

how we can acheive this?
Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 63060

Originally posted by T sandya:
just we need to write or parse the object using the javascript.

how we can acheive this?
You can't. The vector does not exist on the client where the JavaScript is executed. You might find this article article helpful in understanding why.

What I usually do in such cases is to use the JSP to generate JavaScript code that will do the appropriate thing when the button is clicked.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
subject: parsing the vector object?
It's not a secret anymore!