Click here to Skip to main content
15,892,005 members
Home / Discussions / Web Development
   

Web Development

 
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 
GeneralRe: Add - Remove between two HTML List Boxes Pin
Torsten Mauz30-Jan-03 8:00
Torsten Mauz30-Jan-03 8:00 
here's a couple of functions i wrote to do this.

function moveListItem(eleFrom, eleTo)
{
var i = 0;
var IDX = 0;
var arrMovIDX = new Array();
var startIDX = 0;
var arrRemIDX = new Array();

for(i = 0; i < eleFrom.options.length; i++)
{
if(eleFrom.options[i].selected)
{
arrMovIDX[IDX] = eleFrom.options[i];
arrRemIDX[IDX] = i;
IDX += 1;
}
}

startIDX = eleTo.options.length;

for(i = 0; i < arrMovIDX.length; i++)
{
eleTo.options.length += 1;
eleTo.options[startIDX].text = arrMovIDX[i].text;
eleTo.options[startIDX].value = arrMovIDX[i].value;
startIDX += 1;
}

for(i = eleFrom.options.length - 1; i > -1; i--)
{
if(eleFrom.options[i].selected)
{
eleFrom.options[i] = null;
}
}
}

function moveAllListItems(eleFrom, eleTo)
{
var i = 0;

for(i = 0; i < eleFrom.options.length; i++)
{
eleFrom.options[i].selected = true;
}

moveListItem(eleFrom, eleTo);
}

basically just create your buttons and add the appropriate function call to the appropriate button.

e.g. to move from left to right you would call "moveListItem(formname.leftList, formname.rightList);"

moveListItem will move only selected items (supports multiple selections)
moveAllListItems does exactly that.. it will move all the options from one list to another.

if you have any trouble implementing these the give me a shout and i'll provide an example.

HTH


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 
Generalstyle sheets in email Pin
moinuddin29-Jan-03 5:21
moinuddin29-Jan-03 5:21 

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.