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 Android Security Essentials Live Lessons this week in the Android 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: 60802

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]
I agree. Here's the link: http://aspose.com/file-tools
subject: parsing the vector object?
Similar Threads
How to shrink/grow lines
How to Export web page(jsp page) to excel using jsp or servlets
clear the field and disable the back button.
back and forth in a vector
parsing the vector object?