Search the archives!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Javascript] Netscape error with document.layers (not document.frames)
- From: javascript@xxxxxxxxxx (Craig Michael Nathan)
- Subject: [Javascript] Netscape error with document.layers (not document.frames)
- Date: Thu, 24 May 2001 10:47:26 -0700
Whoops -- thanks for catching the typo. It's document.layers. Thanks, -Craig > Message: 3 > From: "Peter Brunone" <peter@xxxxxxxxxxx> > To: <javascript@xxxxxxxxxx> > 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@xxxxxxxxxx > > 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 > | >
- Prev by Date: [Javascript] Cookies smell good!
- Next by Date: [Javascript] Cookies smell good!
- Previous by thread: [Javascript] Cookies smell good!
- Next by thread: [Javascript] Naming cookies
- Index(es):