wood burning stoves 2.0*
The moose likes HTML, CSS and JavaScript and the fly likes Database for website..... or probably not! 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 "Database for website..... or probably not!" Watch "Database for website..... or probably not!" New topic
Author

Database for website..... or probably not!

Jennifer Wallace
Ranch Hand

Joined: Nov 30, 2001
Posts: 102
I am looking for some ideas on how to do this and pointers to books or web resources here.
I have two lists "A" and "B", where for every value of A there is a value of "B". I want to set up a small search facility on my website. Just a little thing where for every value of "A" chosen, the corresponding value of "B" should be displayed.
How do I do this? Set up a database or flat file ? Either way, what tools are recommended and how to set this up? Do help!
sunitha reghu
Ranch Hand

Joined: Dec 12, 2002
Posts: 937
You can do by Javascript using arrays. But if the number of records are large then whole records should be loaded at front end rt? Then the page loads slow. In that scenario serailze the data and then deserilze it.
Another option when the user selects frm the frst select box send that to the DB, then query it and load the same page with the second select box
 
GeeCON Prague 2014
 
subject: Database for website..... or probably not!