Click to See Complete Forum and Search --> : ActiveX-control (combobox) and focus


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

AThaler
September 11th, 2002, 09:02 AM
Hi there!
The solution is:
Now I use another ActiveX for the button (guess whitch: the button control from MS-Forms2 ;-):

<object "CLSID:D7053240-CE69-11CD-A777-00DD01143C57" id="cmdSearch" width="96" height="32"><param name="Caption" value="click me"></object> instead of
<INPUT type="button" value="load" onclick="SearchList()" >

thatīs it!

bye

Andreas :D