--- rat/client/parameter.html 2001/08/08 13:24:52 1.10
+++ rat/client/parameter.html 2001/08/08 13:31:43 1.11
@@ -4,6 +4,7 @@ The LearningOnline Network with CAPA
Parameter Input Window
06/16/00,06/17,11/17,11/18,11/23,11/27,11/28,12/15,12/16,
03/21/01,03/24,06/26 Gerd Kortemeyer
+07/24/01 Scott Harrison
-->
LON-CAPA
@@ -489,8 +490,10 @@ function init() {
if (pair[0]=='type') { subs=pair[1].split('_');
ptype=subs[0];
pscat=subs[1];
- if (subs[2]!=undefined) { pscat+='_'+subs[2]; }
- if ((pscat=='') || (pscat==undefined)) {
+ if (typeof(subs[2])!="undefined") {
+ pscat+='_'+subs[2];
+ }
+ if ((pscat=='') || (typeof(pscat)=="undefined")) {
pscat='default';
}
}
@@ -503,7 +506,8 @@ function init() {
svalue=pvalue;
if (((ptype=='float') || (ptype=='string') || (ptype=='int')) &&
(pscat=='default') &&
- (svalue!=undefined) && (svalue!=0) && (svalue!='')) { pscat='any'; }
+ (typeof(svalue)!="undefined") &&
+ (svalue!=0) && (svalue!='')) { pscat='any'; }
this.window.selector.document.clear();
selwrite('');
@@ -526,7 +530,7 @@ function init() {
sopt('end','Ending Date');
sopt('interval','Time Interval');
- if ((pvalue!='') && (pvalue!=undefined)) {
+ if ((pvalue!='') && (typeof(pvalue)!="undefined")) {
cdate.setTime(pvalue*1000);
}