Listbox problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • archulu
    New Member
    • Mar 2007
    • 34

    #1

    Listbox problem

    hai this archulu

    Any one help to me, in my project i am using Domapi script for creating Listbox. the main problem is i am creating one button, when that button clicking Listbox(Domapi) was opend. after i am selecting any item in that list of Listbox, that selected item was store in to some variable. upto this my program ok.
    Now my Main Problem is after storing the value in to variable that Listbox was want to hide. plz any one help to me
    i am given below my sample code
    [CODE=javascript]
    <script type="text/javascript" src="http://localhost/Domapi/src/domapi.js"></script>
    <script>
    domapi.loadUnit ("listbox");
    function AddClick()
    {


    var fonts = "Aardvark,A bbey-Medium,Symbol,C hickenScratch AOE,Default,MS Serif,Expo,Broo klyn,GilbertUlt raBold,"+
    "Lansbury,A rial Narrow,Lucida Console,Arial Black,System,Ar ial,Fixedsys,Tr ebuchet MS,Humanst521 Cn BT,"+
    "Scythe,Garamon d,Palatino Linotype,Swis72 1 BlkEx BT,Pepsi,Dragon wick,Century Gothic,Georgia, Marlett,"+
    "Courier New,Tahoma,Dawn Castle,Merlin,B ookman Old Style,Times New Roman,Haettensc hweiler,Script, "+
    "Wingdings,Micr osoft Sans Serif,Terminal, Small Fonts,Abagail,B ook Antiqua,Carleto n,Modern,Andes, "+
    "MS Sans Serif,Bastarda, Roman,Opera,Sto nehenge,MS Outlook,Lucida Sans Unicode,Erie,Oz Handicraft BT,"+
    "Lochen,Webding s,Lincoln,Verda na,Comic Sans MS,Motor,Courie r,Impact,Archan a";


    elm1 = domapi.Listbox( {x:575,y:165,w: 150,h:220,eleme ntName:"elm1_va lue"});
    elm1.delimitedT ext(fonts);
    elm1.onchange=l istbox1Changed;
    listbox1Changed (); // for display label



    elm1.onbeforech ange=function(i tem){

    return item;

    };

    }
    //----

    function listbox1Changed (){

    document.frm.no .value= elm1.getValue(" <br />");

    return true;
    }

    [/CODE]
  • iam_clint
    Recognized Expert Top Contributor
    • Jul 2006
    • 1207

    #2
    Ok I had a hard time translating what you were trying to say. Can you try to reword your question I understand up to the point where you say you set the variable. But what is happening after that or what do you want to happen after that?

    Comment

    • archulu
      New Member
      • Mar 2007
      • 34

      #3
      thanks to response,
      in my program i am using domapi listbox,
      After selecting any item from that listbox i want to store that value in some variable like 'value'.
      up this output i am doing ok
      the main problem is after click the value the value will store in that variable (in value), at the same time i want to close and hide that list box


      plz help to me

      Comment

      Working...