Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jan 2009
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Passing a value from a list

    Hi Folks,

    I am trying a simple application similar to the below links.

    http://www.devx.com/getHelpOn/10Minu...ion/16372/1954
    http://www.mredkj.com/tutorials/tutorial007.html

    My Issue is when i select one or multiple value(s) from the list and select the right arrow button it is deleting from the first list.but i dont want to be deleted.can you please help me out.thanks

    thanks and regards,
    Bharath

  • #2
    Senior Coder rangana's Avatar
    Join Date
    Feb 2008
    Location
    Cebu City, Philippines
    Posts
    1,752
    Thanks
    65
    Thanked 372 Times in 365 Posts
    Show us the script you are using, but basically, you just need not to remove the part of the script which removes the option.

    Let me take for example the script here:
    http://www.mredkj.com/tutorials/tutorial007.html

    Just remove highlighted:
    Code:
    if(theSelFrom.options[i].selected)
    {
    selectedText[selectedCount] = theSelFrom.options[i].text;
    selectedValues[selectedCount] = theSelFrom.options[i].value;
    deleteOption(theSelFrom, i);
    selectedCount++;
    }
    Learn how to javascript at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •