haroldsepho
September 27th, 2000, 07:32 AM
Hello there, I am having troubles with this:
I have a HTML page containing 2 main items:
a dropdown menu
a text box
The project I work on also has a XML object, which holds a series of keys and associated values.
When a user chooses one of the dropdown menu options, the javascript code in the HTML page should look at the XML object and get the associated value corresponding to the choice. I would like this associated value to be written in the text box.
Unfortunately, I am experiencing problems reading from the XML object and matching the two values
For instance:
dropdown
get help on choice 1
get help on choice 2
XML
Choice1 HELP: this is choice 1
Choice2 HELP: This is another choice
The code should match the option value from the dropdown to the choice.optionname from XML and display in the text box the XML optiondesc
if I choose "get help on choice 1" the text box should look like "HELP: this is choice 1"
How do I match them?
Any help would be very welcome
Harold
I have a HTML page containing 2 main items:
a dropdown menu
a text box
The project I work on also has a XML object, which holds a series of keys and associated values.
When a user chooses one of the dropdown menu options, the javascript code in the HTML page should look at the XML object and get the associated value corresponding to the choice. I would like this associated value to be written in the text box.
Unfortunately, I am experiencing problems reading from the XML object and matching the two values
For instance:
dropdown
get help on choice 1
get help on choice 2
XML
Choice1 HELP: this is choice 1
Choice2 HELP: This is another choice
The code should match the option value from the dropdown to the choice.optionname from XML and display in the text box the XML optiondesc
if I choose "get help on choice 1" the text box should look like "HELP: this is choice 1"
How do I match them?
Any help would be very welcome
Harold