Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP: VB Combo Box on IE6

Status
Not open for further replies.

martindavey

Programmer
Jan 2, 2000
122
GB
Hi,
I created a combo box based on the code in the tutorial on this page:-


I cannot seem to get it to do anything for the change or click event. The following example is very simple and I have been using for testing.
Do you know why the code in the function combo_change() isn’t executing.

(I’m using ASP:Jscript by the way)
Many thanks, Martin Davey.

<html>
<body>

<form name=&quot;myForm&quot;>

<object classid=&quot;clsid:8BD21D30-EC42-11CE-9E0D-00AA006002F3&quot; id=&quot;combo&quot; name=&quot;combo&quot; width=&quot;100&quot; height=&quot;20&quot;>
<param name=&quot;VariousPropertyBits&quot; value=&quot;746604571&quot;>
<param name=&quot;BackColor&quot; value=&quot;16777215&quot;>
<param name=&quot;ForeColor&quot; value=&quot;2147483656&quot;>
<param name=&quot;MaxLength&quot; value=&quot;0&quot;>
<param name=&quot;BorderStyle&quot; value=&quot;2&quot;>
<param name=&quot;ScrollBars&quot; value=&quot;0&quot;>
<param name=&quot;DisplayStyle&quot; value=&quot;7&quot;>
<param name=&quot;MousePointer&quot; value=&quot;1&quot;>
<param name=&quot;Size&quot; value=&quot;2540;635&quot;>
<param name=&quot;PasswordChar&quot; value=&quot;0&quot;>
<param name=&quot;ListWidth&quot; value=&quot;4000&quot;>
<param name=&quot;BoundColumn&quot; value=&quot;1&quot;>
<param name=&quot;TextColumn&quot; value=&quot;65535&quot;>
<param name=&quot;ColumnCount&quot; value=&quot;1&quot;>
<param name=&quot;ListRows&quot; value=&quot;8&quot;>
<param name=&quot;cColumnInfo&quot; value=&quot;0&quot;>
<param name=&quot;MatchEntry&quot; value=&quot;1&quot;>
<param name=&quot;ListStyle&quot; value=&quot;1&quot;>
<param name=&quot;ShowDropButtonWhen&quot; value=&quot;2&quot;>
<param name=&quot;ShowListWhen&quot; value=&quot;1&quot;>
<param name=&quot;DropButtonStyle&quot; value=&quot;1&quot;>
<param name=&quot;MultiSelect&quot; value=&quot;0&quot;>
<param name=&quot;Value&quot; value>
<param name=&quot;Caption&quot; value>
<param name=&quot;PicturePosition&quot; value=&quot;458753&quot;>
<param name=&quot;BorderColor&quot; value>
<param name=&quot;SpecialEffect&quot; value=&quot;3&quot;>
<param name=&quot;Accelerator&quot; value=&quot;2&quot;>
<param name=&quot;GroupName&quot; value>
<param name=&quot;FontName&quot; value=&quot;Arial&quot;>
<param name=&quot;FontEffects&quot; value=&quot;1073741824&quot;>
<param name=&quot;FontHeight&quot; value=&quot;150&quot;>
<param name=&quot;FontOffset&quot; value=&quot;0&quot;>
<param name=&quot;FontCharSet&quot; value=&quot;0&quot;>
<param name=&quot;FontPitchAndFamily&quot; value=&quot;2&quot;> <param name=&quot;ParagraphAlign&quot; value=&quot;1&quot;>
<param name=&quot;FontWeight&quot; value=&quot;200&quot;>
</object>

<script language=&quot;javascript&quot;>
myForm.combo.addItem(&quot;ONE&quot;);
myForm.combo.addItem(&quot;TWO&quot;);
myForm.combo.addItem(&quot;THREE&quot;);
myForm.combo.listindex = 1;
function combo_change() {
alert(&quot;HI&quot;);
}
</script>

</form>

</body>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top