The problem is not with the eval() function.
You just do not have dynamic access to listboxes on a form.
Place the listboxes outside of your <form></form> tags and it will work in IE and Opera, not in NN.
Hope this helps.
Gerard, thanx for your reply!
After some tweaking, I found the following code to work.
First, I remove the one (and only) option:
<code>List1.options.remove(0)</code>
Then I loop through my array:
<code>Dim Record(x, 2)
for Count = 0 to x - 1 Set y =...
The following JScript adds an array of options to a select box (provided the select box is not in a form):
<code>for (u=0; u<Count+1; u++)
if (u==0) {
var oOption=document.createElement("OPTION");
oSelect.options.add(oOption);
oOption.innerText = (tempArray[u]);
oOption.value =...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.