File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes HTML, CSS and JavaScript and the fly likes .js file and dynamic array Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark ".js file and dynamic array" Watch ".js file and dynamic array" New topic

.js file and dynamic array

Salima Lalani
Ranch Hand

Joined: Aug 15, 2002
Posts: 59
I am using javascript, html and servlet.
My requirement is :-
On the vehicle information form , i will ask the dealer to select make, model.When the user selects the make say Toyota then the models will be displayed in second box as Corolla, Camry etc. The requirement is that i must be able to select the data according to the database but not directly from the database. The make and model can be stored as two dimensional array in an external .js file which has the same data as database and i must be able to somehow show the data from the .js file. When the dealer adds a new make and model to the system and presses Submit , the data will be updated in the .js file and the database. Next time when the page is shown, the user must be able to see all the makes and models as in the database.
Can somebody please help me with this? Some example will be of great help.
Thanks in advance,
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
okay now What you need to use is a combo box with javascript. Here is a quick link to one, but it is not integrated with a sever side script.
and some others
See if you can work with this, if you still need more help, just ask
I agree. Here's the link:
subject: .js file and dynamic array
It's not a secret anymore!