>On a WEB Page, how can I detect with JSP when I select one item on a
>ComboBox?
You can use JavaScript to intercept the onchange event of the combo box
and post the change to the server. The server can then respond by
updating whatever is affected by that combo box. Alternately, you can do
it all in JavaScript.
--
Kevin Dean [TeamB]
Dolphin Data Development Ltd.
http://www.datadevelopment.com/
Please see CodeGear's newsgroup guidelines at
http://support.codegear.com/newsgroups/guidelines
//Here's the getComboxBoxValue that returns the Combo Box's Value
function getComboBoxValue(id){
var cbox=document.getElementById(id);
alert(cbox.options[cbox.selectedIndex].text);
}
</script>
<body>
<select id="combo" onchange="getComboBoxValue('combo')">
<option>One</option>
<option>Two</option>
<option>Three</option>
</select>
<br/>
<br/>
<select id="combo2" onchange="getComboBoxValue('combo2')">
<option> Uno</option>
<option>Dos</option>
<option>Tres</option>
</select>
<body>
</html>
"LMario" <lmms...@hotmail.com> wrote in message
news:479fa953$1...@newsgroups.borland.com...