HEllo,
I still have always the same problem with a no object form in my
source code.
It is for checking out used radiobuttons or checkboxes.<scr ipt
<!--
function pruefen(){retur n true}
-->
</script>
<script language="JAvaS cript1.1"><!--
function pruefen(f){
var i;
var k=0;
document.forms[f].elements; /* this sould be an object form but I
can't find the syntax-mistake */
for(i=0; i < f.elem.length; i++){
if ('checkbox' == elem[i].type)
{
if(elem[i].checked)
k++;
}
}return true;
}
/* So actually I need k for continue. Maybe it has to give back k ? */
<form onSubmit="retur n pruefen(this)"> </form>
Thank you
I still have always the same problem with a no object form in my
source code.
It is for checking out used radiobuttons or checkboxes.<scr ipt
<!--
function pruefen(){retur n true}
-->
</script>
<script language="JAvaS cript1.1"><!--
function pruefen(f){
var i;
var k=0;
document.forms[f].elements; /* this sould be an object form but I
can't find the syntax-mistake */
for(i=0; i < f.elem.length; i++){
if ('checkbox' == elem[i].type)
{
if(elem[i].checked)
k++;
}
}return true;
}
/* So actually I need k for continue. Maybe it has to give back k ? */
<form onSubmit="retur n pruefen(this)"> </form>
Thank you
Comment