need help

Results 1 to 2 of 2

Thread: need help

  1. #1
    Join Date
    Dec 1969

    Default need help

    I am trying to populate a listbox dynamicaly,I know that I am doing smth. wrong,but can not get it.<BR>// myMod1 - array<BR>function loadmd(md){<BR> var selmod = md.selectedIndex;<BR> var mod = document.form1.model.options.length;<BR> var bag = document.form1.model.options;<BR> var lln = document.form1.model.options.length;<BR> for (i = mod; i &#062;= 0; i--) {<BR> document.form1.model.options[i] = null;<BR> }<BR> <BR> if (selmod!= -1){<BR>if (md.options[selmod].value == 1){<BR><BR>for (var a = 1;a &#060;= lln;a ++){<BR>for (var b = 1;b &#060;= myMod1;b ++){<BR><BR>bag[b] = myMod1[a]<BR>}}<BR><BR>}

  2. #2
    Join Date
    Dec 1969

    Default RE: need help

    Dunno whether I am as confused as you are, but I don&#039t see any end ifs or ends to your for declarations? Maybe that is the problem, the if statement never gets initialised as the one before never ends?<BR><BR>HTH a little bit?<BR><BR>Gail.

Posting Permissions

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