• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

.js file and dynamic array

 
Ranch Hand
Posts: 59
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
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,
Salima
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
http://www.javascriptkit.com/script/cut183.shtml
and some others
http://www.javascriptkit.com/script/cutindex16.shtml
See if you can work with this, if you still need more help, just ask
Eric
 
This guy is skipping without a rope. At least, that's what this tiny ad said:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic