Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Netscape fails when calling document.frames from within a FRAME
- From: javascript@xxxxxxxxxx (Peter Brunone)
- Subject: [Javascript] Netscape fails when calling document.frames from within a FRAME
- Date: Wed, 23 May 2001 21:56:52 -0500
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@xxxxxxxxxx [mailto:javascript-admin@xxxxxxxxxx]On |Behalf Of Craig Michael Nathan |Sent: Wednesday, May 23, 2001 8:51 PM |To: javascript@xxxxxxxxxx |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@xxxxxxxxxx |http://www.LaTech.edu/mailman/listinfo/javascript |
- References:
- [Javascript] Netscape fails when calling document.frames from within a FRAME
- From: Craig Michael Nathan
- [Javascript] Netscape fails when calling document.frames from within a FRAME
- Prev by Date: [Javascript] Netscape fails when calling document.frames from within a FRAME
- Next by Date: [Javascript] Getting info. from URL of a page that is in frames
- Previous by thread: [Javascript] Netscape fails when calling document.frames from within a FRAME
- Next by thread: [Javascript] Getting info. from URL of a page that is in frames
- Index(es):