File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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 The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "parsing the vector object?" Watch "parsing the vector object?" New topic
Author

parsing the vector object?

T sandya
Ranch Hand

Joined: Aug 03, 2006
Posts: 64
Hi,
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
Marshal

Joined: Jan 10, 2002
Posts: 61092
    
  66

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?