Solved

ASP/VBSCRIPT/ListBox

Posted on 2002-03-07
2
448 Views
Last Modified: 2008-03-04
Hello, I have a listbox with ID="List1" that i need to update from with in a vbscript sub.  any ideas
0
Comment
Question by:MICS
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 46

Expert Comment

by:fritz_the_blank
ID: 6847524
Can you tell us a little more about what you're trying to do please?

Fritz the Blank
0
 
LVL 3

Accepted Solution

by:
tonydspaniard earned 50 total points
ID: 6847533
if what you are doing is using IE do the following:

' Create an option element
' in JScript
' var optOption = document.createElement("OPTION");
' optOption .text="Apples";
' optOption .value="5";
' document.all.List1.add(optOption );

' in VBScript
Set optOption = document.createElement("OPTION")
optOption.text="Oranges"
optOption.value="10"
document.all.List1.add(optOption)


CYA

0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question