AThaler
August 28th, 2002, 09:33 AM
Hi there
following problem
On my site I want to use a combobox (ActiveX control from MS Forms2) and (at least) one button.
Now, when I type something in the combobox (or select something (thatīs what itīs for ;-)) and now click the button, nothing happens (with the 2nd click all is good)
Seems the button doesenīt get the focus (by the way: even the first time the dotted line on the button shows (so, it has the focus?)
Anybody knows a way to work around this prob?
Samplecode:
<HTML>
<BODY>
<OBJECT classid="clsid:8BD21D30-EC42-11CE-9E0D-00AA006002F3" name="LastStl" id="combobox"> </OBJECT>
<SCRIPT LANGUAGE="JavaScript" >
combobox.AddItem("foo");
combobox.AddItem("foo");
</SCRIPT>
<P><SELECT size="1" name="List">
<OPTION>Bla</OPTION>
<OPTION selected>blubb</OPTION>
</SELECT></P>
<P><INPUT type="button" name="blabla" onclick="alert('alaam!');" value="blabla"></P>
</BODY>
</HTML>
Auf Hilfe freut sich:
Andreas
following problem
On my site I want to use a combobox (ActiveX control from MS Forms2) and (at least) one button.
Now, when I type something in the combobox (or select something (thatīs what itīs for ;-)) and now click the button, nothing happens (with the 2nd click all is good)
Seems the button doesenīt get the focus (by the way: even the first time the dotted line on the button shows (so, it has the focus?)
Anybody knows a way to work around this prob?
Samplecode:
<HTML>
<BODY>
<OBJECT classid="clsid:8BD21D30-EC42-11CE-9E0D-00AA006002F3" name="LastStl" id="combobox"> </OBJECT>
<SCRIPT LANGUAGE="JavaScript" >
combobox.AddItem("foo");
combobox.AddItem("foo");
</SCRIPT>
<P><SELECT size="1" name="List">
<OPTION>Bla</OPTION>
<OPTION selected>blubb</OPTION>
</SELECT></P>
<P><INPUT type="button" name="blabla" onclick="alert('alaam!');" value="blabla"></P>
</BODY>
</HTML>
Auf Hilfe freut sich:
Andreas