Wrox Home  
Search P2P Archive for: Go

  Return to Index  

javascript thread: Using form objects in Layers


Message #1 by "Alex Bienz" <alex@v...> on Tue, 23 Apr 2002 13:51:43 +0100
Yes that's right I managed to work that out after much stressing,

In the end I had to write a test into my code for the different browsers,
then use the relevant code to point to my form objects depending on the
browser determined.

How bad is that, I know that Netscape and IE have their differences but
that's seriously poor, makes my life hard anyway :(

		Cheers,
			Al.

-----Original Message-----
From: speedguru@m... [mailto:speedguru@m...]
Sent: 23 April, 2002 16:24
To: javascript
Subject: [javascript] Re: Using form objects in Layers


hi,

i dont think you can nest <form> elements.

with an individual form in a layer i get to my elements in a layer like this
in NN -
document.body.layers[0].document.forms[0].elements[0].checked

and directly in IE -
document.forms[0].elements[0].checked

hth




> How do I point to a form object inside a form inside a layer?

I tried this...

document.Layer6.document.frm_f7iii.f_q7iii[2].checked

and...

document.Layer6.document.frm_f7iii.f_q7iiib.value

but it comes back with an error saying object does not exist, when I'm
pretty sure it does, my layers are Div tags, I need to make them compatible
with IE6 and Netscape 4,

Can anyone help?

		Cheers,
			Al.


---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20


  Return to Index