LiveWire Web-to-Database Solutions, Part 2

By William Robert Stanek

Dr. Dobb's Sourcebook July/August 1997

function searchCrit(which) {
   var dataObj = document.forms[0].table
   var dataLen = dataObj.length
   for (var i = 0; i < dataLen; i++) {
      if (which == "customer") {
         dataObj.options[i].text = tableOne[i]
      } else {
         dataObj.options[i].text = tableTwo[i]
      }
   }
   history.go(0)
}

Example 6: Populating the selection menus.

Back to Article