hey all,
in vs2k3 i could loop thru all the elements in the document like the
following:
function getscrollvalue( ){
elm=document.Fo rm1.elements;
for(i=0;i<elm.l ength;i++)
if(elm[i].type=="text" && elm[i].name.match("sc rollvalue")!=nu ll){
a=elm[i];
a.value=(a.valu e=="")?0:a.valu e
}
}
is it different in vs2k5? because i'm getting "form1 is null or not an object"
thanks,
rodchar
in vs2k3 i could loop thru all the elements in the document like the
following:
function getscrollvalue( ){
elm=document.Fo rm1.elements;
for(i=0;i<elm.l ength;i++)
if(elm[i].type=="text" && elm[i].name.match("sc rollvalue")!=nu ll){
a=elm[i];
a.value=(a.valu e=="")?0:a.valu e
}
}
is it different in vs2k5? because i'm getting "form1 is null or not an object"
thanks,
rodchar
Comment