Basic HTML version of Foils prepared 23 June 1997

Foil 80 Dynamic Forms in JavaScript - III

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


1 function flexbuttons(maxradio, groupname, number, indname, indexselected, onprocess) {
2 if( number <= maxradio) { // radio buttons
  • for( var i=1; i <= number ; i++ ) {
  • top.fred.document.writeln('<input' +
  • 'type="radio" name="' + groupname +
  • '" value="' + indname[i] + '"');
  • if( i == indexselected )
  • top.fred.document.writeln(' CHECKED');
  • top.fred.document.writeln(' onClick="' +
  • onprocess + '(self,this,' + i + ')">');
  • } // end for loop
3 } // end if block

in Table To:


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