Solved

ASP/VBSCRIPT/ListBox

Posted on 2002-03-07
2
442 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
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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

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…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now