Quantcast
Channel: Internet Explorer Web Development forum
Viewing all articles
Browse latest Browse all 3527

IE11: Interaction Between vbscript and HTML page: 'Select element' 'add option' Impossible

$
0
0

Hello,

I have a big vbs script that interact with an HTML page.Since IE11, everything work well except one thing:

Impossible to fill combo list (select) at run time.

Code tried:

1.

T="Test"
Set Combo = IE.document.getElementById("MyCombo")
set ComboOpt = IE.document.createElement("option")
ComboOpt.text = CStr(T)
ComboOpt.value = CStr(T)
ComboOpt.ID = CStr(T)
Combo.add ComboOpt

2.

T="Test"
Set Combo = IE.document.getElementById("MyCombo")
set ComboOpt = IE.document.createElement("option")
Combo.options.add ComboOpt
ComboOpt.innerHTML = CStr(T)
ComboOpt.value = CStr(T)

I need really quickly help about that

Thanks


Viewing all articles
Browse latest Browse all 3527

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>