IntelliJ Java IDE
The moose likes HTML, CSS and JavaScript and the fly likes Dynamically showing data through JavaScript Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Dynamically showing data through JavaScript" Watch "Dynamically showing data through JavaScript" New topic
Author

Dynamically showing data through JavaScript

jason adam
Chicken Farmer ()
Ranch Hand

Joined: May 08, 2001
Posts: 1932
Can someone point me to a good resource/tutorial on how to dynamically show data on a web page based on the selection from a drop down menu?
Basically, someone is going to pick a month from a drop down list, and when they click on that month, I want data to pop up reflecting that specific month, without them having to click "retrieve" or whatever.
Thanks!
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15003
Not sure what you want exactly.....
Basically you dump everything into arrays and look it up. And you use innerHTML to change the content on the page.
Example:
http://dynamicdrive.com/dynamicindex17/agallery.htm
Or you might want double combo scripts...
Eric
jason adam
Chicken Farmer ()
Ranch Hand

Joined: May 08, 2001
Posts: 1932
Thanks Eric, that's exactly what I was looking for. I help webmaster a friends site for his business, and he wanted to show a schedule of events for each month. So if someone selected "March", the events for March would appear below the the drop down. If they clicked "July", then the data would change to show that month.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15003
You are easy to please....I got lucky on the first shot...
 
 
subject: Dynamically showing data through JavaScript
 
Threads others viewed
javascript function to return a value
Ajax: how to achieve
disabling fields from drop down menu
retrive data from db2 as month and year wise
Creating a dropdown based on user choice in a checkbox
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com