We help IT Professionals succeed at work.

access data of the second layer in a form (Netscape)

perevicente
perevicente asked
on
Medium Priority
196 Views
Last Modified: 2013-12-18

Hi,

I would appreciate some help for the next question:

I have a form with two layers.

In IE there is not problem but in Netscape I can't access to the second layer.
(In JavaScript I have a function for refresh the second layer):

function load( layer, src ) {
     var object;
     if ( NN4 ) {
          object = eval( 'document.layers[\''+ layer +'\']');
          object.src = src;
     }
     else if ( IE4 ) {
          object = eval( 'document.frames["' + layer + '"].document' );
          object.location = src;
     }
}

IE:
<FORM>....
<Frame name="a">....
</Frame>
<Frame name"b">....
</FRAME>

Netscape:
<FORM>...
<Layer name="a">.....
</Layer>
<Layer name="b">....
</Layer>


How can I access to the second layer?
I have readen that in Netscape only is possible have one layer per form!!!!

Regards,



Comment
Watch Question

FAQ about src in layer fron netscape dev connection,

What kind of files can be the targets of a LAYER tag's SRC attribute?

A LAYER tag's SRC attribute specifies an external file which is displayed as the content of the layer. Currently, there are a few restrictions on the kind of file which can be specified. It's not yet possible to use an image or a page that contains frames as the SRC of a layer.


Are you using a framed html as a src ?


~Hemanth

Author

Commented:
Thanks you gave the clue!!

Explore More ContentExplore courses, solutions, and other research materials related to this topic.