version 1.9, 2001/07/25 03:10:15
|
version 1.11, 2001/08/08 13:31:43
|
Line 3
|
Line 3
|
The LearningOnline Network with CAPA |
The LearningOnline Network with CAPA |
Parameter Input Window |
Parameter Input Window |
06/16/00,06/17,11/17,11/18,11/23,11/27,11/28,12/15,12/16, |
06/16/00,06/17,11/17,11/18,11/23,11/27,11/28,12/15,12/16, |
03/21/01,03/24 Gerd Kortemeyer |
03/21/01,03/24,06/26 Gerd Kortemeyer |
07/24/01 Scott Harrison |
07/24/01 Scott Harrison |
--> |
--> |
<head> |
<head> |
Line 248 function integereval() {
|
Line 248 function integereval() {
|
if ((pscat=='pos') && (svalue==0)) { |
if ((pscat=='pos') && (svalue==0)) { |
svalue=''; |
svalue=''; |
} |
} |
|
if (pscat.indexOf('range')!=-1) { |
|
var rangeparts=new Array; |
|
rangeparts=split('_',pscat); |
|
rangeparts=split('...',rangeparts[1]); |
|
if (svalue<rangeparts[0]) { svalue=rangeparts[0]; } |
|
if (svalue>rangeparts[1]) { svalue=rangeparts[1]; } |
|
} |
draw(); |
draw(); |
} |
} |
|
|
Line 392 choicewrite('<tr bgcolor="#AAFFAA"><td c
|
Line 399 choicewrite('<tr bgcolor="#AAFFAA"><td c
|
if (pscat=='zeropos') { |
if (pscat=='zeropos') { |
tablestart('Positive integer or zero'); |
tablestart('Positive integer or zero'); |
} |
} |
|
if (pscat.indexOf('range')!=-1) { |
|
var rangeparts=new Array; |
|
rangeparts=split('_',pscat); |
|
tablestart('Integer in the range ['+rangeparts[1]+']'); |
|
} |
if (pscat=='any') { |
if (pscat=='any') { |
tablestart('Integer'); |
tablestart('Integer'); |
} |
} |
Line 478 function init() {
|
Line 490 function init() {
|
if (pair[0]=='type') { subs=pair[1].split('_'); |
if (pair[0]=='type') { subs=pair[1].split('_'); |
ptype=subs[0]; |
ptype=subs[0]; |
pscat=subs[1]; |
pscat=subs[1]; |
if (typeof(subs[2])!="undefined") { pscat+='_'+subs[2]; } |
if (typeof(subs[2])!="undefined") { |
|
pscat+='_'+subs[2]; |
|
} |
if ((pscat=='') || (typeof(pscat)=="undefined")) { |
if ((pscat=='') || (typeof(pscat)=="undefined")) { |
pscat='default'; |
pscat='default'; |
} |
} |
Line 492 function init() {
|
Line 506 function init() {
|
svalue=pvalue; |
svalue=pvalue; |
if (((ptype=='float') || (ptype=='string') || (ptype=='int')) && |
if (((ptype=='float') || (ptype=='string') || (ptype=='int')) && |
(pscat=='default') && |
(pscat=='default') && |
(typeof(svalue)!="undefined") && (svalue!=0) && (svalue!='')) { pscat='any'; } |
(typeof(svalue)!="undefined") && |
|
(svalue!=0) && (svalue!='')) { pscat='any'; } |
|
|
this.window.selector.document.clear(); |
this.window.selector.document.clear(); |
selwrite('<html><body bgcolor="#FFFFFF">'); |
selwrite('<html><body bgcolor="#FFFFFF">'); |
Line 537 function init() {
|
Line 552 function init() {
|
sopt('default','Default'); |
sopt('default','Default'); |
sopt('pos','Positive Integer, Not Zero'); |
sopt('pos','Positive Integer, Not Zero'); |
sopt('zeropos','Positive Integer or Zero'); |
sopt('zeropos','Positive Integer or Zero'); |
|
sopt('range','Integer Range'); |
sopt('any','Integer'); |
sopt('any','Integer'); |
} |
} |
|
|