[Javascript] Netscape error with document.layers (not document.frames)
Craig Michael Nathan
cnathan at MEconomy.com
Thu May 24 12:47:26 CDT 2001
Whoops -- thanks for catching the typo. It's document.layers.
Thanks,
-Craig
> Message: 3
> From: "Peter Brunone" <peter at brunone.com>
> To: <javascript at LaTech.edu>
> Subject: RE: [Javascript] Netscape fails when calling document.frames from within a FRAME
> Date: Wed, 23 May 2001 21:56:52 -0500
> Reply-To: javascript at LaTech.edu
>
> document.frames, or document.layers? As far as I know, there is no
> document.frames, but you're making a reference to the layers collection in
> your script.
>
> |-----Original Message-----
> |From: javascript-admin at LaTech.edu [mailto:javascript-admin at LaTech.edu]On
> |Behalf Of Craig Michael Nathan
> |Sent: Wednesday, May 23, 2001 8:51 PM
> |To: javascript at LaTech.edu
> |Subject: [Javascript] Netscape fails when calling document.frames from
> |within a FRAME
> |
> |
> |Hey all,
> | I have an interesting problem:
> |
> | Apparently, if you make a call to document.frames
> |from within a FRAME, it ends that parsing of the javascript
> |then and there, with no error message.
> |
> | What's interesting is that if the FRAMESET is loaded
> |already, and the content of a frame is updated, this works fine.
> |
> | I've attached files that demonstrate this below and on
> |the URLs.
> |
> | Any help in getting document.frames to work correctly
> |the first time would be MOST appreciated.
> |
> | Thoughts?
> |
> | Thanks!
> |
> | -Craig
> |
> |I've also put these files at:
> | http://www.meconomy.com/ft/frametest.html
> | http://www.meconomy.com/ft/foo.html
> | http://www.meconomy.com/ft/foo2.html
> | http://www.meconomy.com/ft/test.js
> |
> |
> |*** I have the file "frameset.html":
> |
> |<html><head><title>FrameSet Test</title>
> |<FRAMESET cols="*,250">
> | <FRAME src="foo.html">
> | <FRAME src="foo.html">
> |</FRAMESET>
> |<body></body></html>
> |
> |
> |*** Where "foo.html" is:
> |
> |<html><head><title>foo</title>
> |<body>
> |<script language="JavaScript1.2" src="test.js"></script>
> | If this is in a Frame, you won't see the alert box!
> | <br><br>
> | However, if you <A href="foo2.html">click here</a>, to
> | change the content of this frame to something nearly
> | identical, you will see an alert box....
> |</body></html>
> |
> |
> |*** "foo2.html" is:
> |
> |<html><head><title>foo</title>
> |<body>
> |<script language="JavaScript1.2" src="test.js"></script>
> | This is Foo2 -- you'll see the pop-up!
> |</body></html>
> |
> |
> |*** And "test.js" is:
> |
> |var isNetscape = document.layers;
> |
> |alert("This Doesn't Display on Netscape!");
> |
> |_______________________________________________
> |Javascript mailing list
> |Javascript at LaTech.edu
> |http://www.LaTech.edu/mailman/listinfo/javascript
> |
>
More information about the Javascript
mailing list