Closed Bug 261906 Opened 21 years ago Closed 21 years ago

opening a page error: window.parent.frames is not a function

Categories

(Toolkit :: Form Manager, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

VERIFIED INVALID

People

(Reporter: jos.janssen, Assigned: bugs)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20040913 Firefox/0.10 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; rv:1.7.3) Gecko/20040913 Firefox/0.10 <html> <head> <title>abcdefgh</title> </head> <body leftmargin=0 topmargin=0 vlink="#ffc08c" alink="#red"> <SCRIPT LANGUAGE="javascript"> window.parent.frames(1).scrolling='no' document.write('<IMG SRC="https://www.abc.nl/privatedata/Upload/1057/knowledge.jpg" WIDTH='+(document.body.clientWidth)+' HEIGHT='+(document.body.clientHeight)+'>') </SCRIPT> </body> </html> Reproducible: Always Steps to Reproduce: 1. 2. 3. Actual Results: The page is not shown complete. Expected Results: translate "frames(1)" to "frames[1]" or var menuit = document.forms("menu"); Internet explorer and Opera have no problem with this.
This page didnt work in Opera 7.6 beta, IE 6 SP2 nor in Firefox.
Can you explain what you are trying to do. <SCRIPT LANGUAGE="javascript"> should be <script type="text/javascript"> window.parent.frames[1].scrolling='no' 1) .frames[1] is the second frame in a body, not the first 2) .scrolling is no javascript 3) every line has to end with a ; which makes this function invalid document.write('<IMG SRC="https://www.abc.nl/privatedata/Upload/1057/knowledge.jpg" WIDTH='+(document.body.clientWidth)+' HEIGHT='+(document.body.clientHeight)+'>') again ; missing ->INVA
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → INVALID
Status: RESOLVED → VERIFIED
I can't give you the URL of our intranet site, but look at this site for example: http://javascript.internet.com/games/mad-cows-source.html replace frames[1] with frames(1) Open mad-cows.html with IE 6.0 and with Firefox and see the result when you moving the mouse over the 3 pictures.
afaik peter.vanderwoude@gmail.com does not speak for mozilla.org (nor do i) language=javascript was an old attribute, which is still meaningful to old browsers. ;'s are not required at ends of lines (or files or streams).
Product: Firefox → Toolkit
You need to log in before you can comment on or make changes to this bug.