Yeah the code I attached is not for the full thing, just an example. It basically is set to add a second dropdown box based on the selected values from the first dropdown.
If you want to load it from a text file you'd need a server-side language like PHP or ASP.net and use ajax calls. Javascript can't directly interface with files.
You could use a java applet, silverlight or flash to do the drop downs and read from a text file as well. Think it's easier with JS though.
|