Click to See Complete Forum and Search --> : Netscape 4 problems


DomDom
April 29th, 2002, 09:40 AM
I try to access a form control inside a DIV tag. it works in IE and netscape 6, but with Netscape 4, it doesn't work. Here's what I use:

document.FormName.submit();

What is wrong???

mjxnjx
May 1st, 2002, 04:56 PM
Try this out:

http://developer.netscape.com/docs/manuals/communicator/jsref/index.htm



<i>You know that rating you've been holding onto? Now is a great time to use it!</I>

websmith99
October 14th, 2002, 03:08 PM
With Netscape 4.x, anything within a <div> tag is considered a separate document. This comes from their proprietary <layer> concept. (which they scrapped with Netscape 6 after realizing how terrible it was)

Therefore a separate form is needed inside the <div> for Netscape 4. You would then refer to the form element through the DOM as:

document.layers['<divname>'].document.forms['<form name>'].submit();

Note that all form elements would have to be within this <div>.

Do browser detection and layout the form elements differently for Netscape 4.x