Click to See Complete Forum and Search --> : changing property of a field in another form


Kemu
02-17-2003, 03:09 PM
i would need to change the value of a different form from a selectlist value in another form... but somehow it doesnt work. at least with IE6 :(

here is the code
<form action="index.php" method="get" name="form1">
<input type='hidden' name='hidden1' value='TEST' >
</form>

<form name='form2' action='index.php' method='post'>
<select name='select1' onChange="document.form1.hidden1.value=document.form2.select1.options[selectedIndex].value; ">
<option value='0' >value0</option>
<option value='1' >value1</option>
</select>
</form>


there it aboutly is.... IE6 gives error: "'document.form1.hidden1' is either null or not an object"

and from my other tests it seems that the document.form1 marking is ivalid somehow.... so how do i point to a area in another form??????

(i hope u could get something out of my not-so-good-writing ;) )

Kemu
02-17-2003, 03:15 PM
hmm.. now that i wrote it like that, it worked in my test.... but the actualy code which is VERY similar, still doesnt work :(

and even if i copied THAT code to my real thingy... it doesnt work..... weird.... and im getting tired to this

Kemu
02-17-2003, 04:06 PM
argh..... /me h8s M$

the prob was in WHOLE different part of the document that IE6 told.... i got it fixed now... thx anyways :)