Solved

ASP/VBSCRIPT/ListBox

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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Select case on click 3 29
ASP Classic Query that needs to display more information 18 48
Ajax on ASP 2 63
Passing ASP variables in JQuery 4 48
I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:   The Exchange of informatio…
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…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

734 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