Re: Multiple pull downs reload problem

by Thomas James Allen <tjallen(at)pipeline.com>

 Date:  Tue, 12 Oct 1999 22:49:58 -0400
 To:  deatley(at)flash.net
 Cc:  hwg-basics(at)hwg.org
  todo: View Thread, Original
Last week, David D. asked about resetting a pull-down list,
so that after a choice is made from the list, and 
after something is done with that choice in a javascript,
the pull-down list gets reset to its original state.

The basic way to reset a pull-down list (without reloading the page)
is to change the list's "selectedIndex" back to zero (the first value).
This is done with the javascript line
document.formname.listname.selectedIndex=0

You can see a simple example at:
http://www.getyourwebsitehere.com/personal/pulldownreset1.html
This has been tested in IE4, NN3 and NN4.6 on a pc.
Here I display a pulldown list, you select something,
I display your selection in a window, and I reset the 
pull-down list to it's original state.

Feel free to view source and copy or modify this script.

Now David, in your exact case, it's a bit trickier.
You had three lists with the same name and one javascript. 
You may need to make three lists, each with its own name,
and three javascript functions. In each function, you would
use the same concept as above to reset each list seperately.
But the basic idea is the same.

Hope this helps,
and write back if this needs more work.
jimmy
---
Jimmy Allen (Thomas James Allen)
Business - Get Your Website Here
http://www.getyourwebsitehere.com
Personal - Eclecticity
http://www.getyourwebsitehere.com/personal

HTML: hwg-basics mailing list archives, maintained by Webmasters @ IWA