javelin
03-26-2001, 02:14 PM
Anyone know the syntax cheapscape uses to address items in a form?
ex. In IE I can write:
...
var ch = document.forms[0].elements;
var l = document.forms[0].length;
var ls_type = type + "";
var lb_checked=false;
if (ch!=null) {
for (var i=0; i<ch.length; i++) {
if( (ch.item(i).tagName == "INPUT") && (ch.item(i).id.indexOf(ls_type) != -1) ){
if(ch.item(i).checked)
lb_checked =true;
}
}// end for
}// end if
and get each elements values with no prob. Netscape doesn't recognize any of this - it tells me that forms have no properties.
So how do get the values of dynamically generated INPUTs in a form in cheapscape?
Thanx :)
ex. In IE I can write:
...
var ch = document.forms[0].elements;
var l = document.forms[0].length;
var ls_type = type + "";
var lb_checked=false;
if (ch!=null) {
for (var i=0; i<ch.length; i++) {
if( (ch.item(i).tagName == "INPUT") && (ch.item(i).id.indexOf(ls_type) != -1) ){
if(ch.item(i).checked)
lb_checked =true;
}
}// end for
}// end if
and get each elements values with no prob. Netscape doesn't recognize any of this - it tells me that forms have no properties.
So how do get the values of dynamically generated INPUTs in a form in cheapscape?
Thanx :)