Basic HTML version of Foils prepared 23 June 1997

Foil 81 Dynamic Forms in JavaScript - IV

From JavaScript Tutorial for Certificate Course UC Web applications Certificate -- Summer 97. by Geoffrey C. Fox, Tom Scavo


else { // select field
  • top.fred.document.writeln('<select name="' +
  • groupname + '" onChange="' + onprocess +
  • '(this,this.options[this.selectedIndex]' +
  • ',(1+this.selectedIndex))">');
  • for( var i=1; i <= number ; i++ ) {
  • var ifselected = ' ';
  • if( i == indexselected )
  • ifselected = ' SELECTED ';
  • top.fred.document.writeln('<option' +
  • ifselected + 'value="' + indname[i] +
  • '">' + indname[i]);
  • } // End for loop
  • top.fred.document.writeln('</select>');
} // End else block
} // End function



Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Wed Apr 1 1998