--- rat/client/parameter.html 2000/12/16 19:51:30 1.6 +++ rat/client/parameter.html 2001/07/25 03:10:15 1.9 @@ -2,7 +2,9 @@ LON-CAPA @@ -476,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'; } } @@ -490,12 +492,12 @@ 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(''); - selwrite('

'+pname+'

'); + selwrite(''+pname+'
'); selwrite('