--- rat/client/parameter.html 2001/03/23 19:16:13 1.8
+++ rat/client/parameter.html 2001/07/25 03:10:15 1.9
@@ -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 Gerd Kortemeyer
+07/24/01 Scott Harrison
-->
LON-CAPA
@@ -477,8 +478,8 @@ 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';
}
}
@@ -491,7 +492,7 @@ 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('');
@@ -514,7 +515,7 @@ function init() {
sopt('end','Ending Date');
sopt('interval','Time Interval');
- if ((pvalue!='') && (pvalue!=undefined)) {
+ if ((pvalue!='') && (typeof(pvalue)!="undefined")) {
cdate.setTime(pvalue*1000);
}