Click here to Skip to main content
15,916,702 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: script block and Server.Transfer Pin
devvvy30-Jan-03 22:47
devvvy30-Jan-03 22:47 
GeneralASP .NET Web Hosting Pin
perlmunger30-Jan-03 6:56
perlmunger30-Jan-03 6:56 
GeneralRe: ASP .NET Web Hosting Pin
Paul Riley30-Jan-03 7:03
Paul Riley30-Jan-03 7:03 
GeneralRe: ASP .NET Web Hosting Pin
perlmunger30-Jan-03 7:35
perlmunger30-Jan-03 7:35 
GeneralRe: ASP .NET Web Hosting Pin
Paul Riley30-Jan-03 7:35
Paul Riley30-Jan-03 7:35 
GeneralRe: ASP .NET Web Hosting Pin
perlmunger30-Jan-03 7:49
perlmunger30-Jan-03 7:49 
GeneralAdd - Remove between two HTML List Boxes Pin
jerry0davis30-Jan-03 5:59
jerry0davis30-Jan-03 5:59 
GeneralRe: Add - Remove between two HTML List Boxes Pin
DFU2330-Jan-03 6:51
DFU2330-Jan-03 6:51 
Here are some things that I have found out by trial and error about using JavaScript with the HTML <select> element:

To access the <select>:
document.formName.selectName

To clear all of the <option>'s from the <select>:
document.formName.selectName.options.length = 0;

To add an <option> to a <select>:
var newOption = document.createElement("OPTION");
document.formName.selectName.options.add(newOption);

To remove an <option> from a <select>:
document.formName.selectName.options[i] = null;

To deselect <option>(s) in a <select>:
document.formName.selectName.selectedIndex = -1;

This should give you the basics to run with this ... and I am sure there is plenty of examples out there ... just don't have a link handy.

Wally Atkins
Newport News, VA, USA

GeneralRe: Add - Remove between two HTML List Boxes Pin
Torsten Mauz30-Jan-03 8:00
Torsten Mauz30-Jan-03 8:00 
GeneralRe: Add - Remove between two HTML List Boxes Pin
jerry0davis30-Jan-03 21:50
jerry0davis30-Jan-03 21:50 
GeneralRe: Add - Remove between two HTML List Boxes Pin
jerry0davis30-Jan-03 21:47
jerry0davis30-Jan-03 21:47 
GeneralSearch facility for website Pin
Member 20664930-Jan-03 3:21
Member 20664930-Jan-03 3:21 
GeneralRe: Search facility for website Pin
Jon Sagara30-Jan-03 5:18
Jon Sagara30-Jan-03 5:18 
GeneralSession Object Not Going Away Pin
Kevin McFarlane30-Jan-03 2:16
Kevin McFarlane30-Jan-03 2:16 
GeneralRe: Session Object Not Going Away Pin
Kevin McFarlane1-Feb-03 0:34
Kevin McFarlane1-Feb-03 0:34 
GeneralError receiving array data via SOAP Pin
EnkelIk30-Jan-03 1:22
EnkelIk30-Jan-03 1:22 
GeneralRe: Error receiving array data via SOAP Pin
EnkelIk30-Jan-03 3:00
EnkelIk30-Jan-03 3:00 
GeneralCase solved Pin
EnkelIk4-Feb-03 23:16
EnkelIk4-Feb-03 23:16 
Generalwhitespace and HTML textbox Pin
devvvy29-Jan-03 21:18
devvvy29-Jan-03 21:18 
GeneralRe: whitespace and HTML textbox Pin
DFU2330-Jan-03 10:26
DFU2330-Jan-03 10:26 
GeneralRe: whitespace and HTML textbox Pin
devvvy30-Jan-03 12:26
devvvy30-Jan-03 12:26 
QuestionWhat is wrong with this ASP code? Pin
rsasalm_29-Jan-03 12:10
rsasalm_29-Jan-03 12:10 
AnswerRe: What is wrong with this ASP code? Pin
DFU2330-Jan-03 10:22
DFU2330-Jan-03 10:22 
GeneralTab control Pin
georgiek5029-Jan-03 11:53
georgiek5029-Jan-03 11:53 
GeneralRe: Tab control Pin
DFU2330-Jan-03 9:12
DFU2330-Jan-03 9:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.