window.parent.frames[1].trainNews.disabled=true FAILS in Javascript WHERE trainNews is linked CSS file DISABLED flagged in Moz doc as MS origin WORKS in IE NOT MOZILLA Documentation in latter does not suggest this

Asked by mikb

Binary package hint: firefox-3.0

CODE:

  window.parent.frames[1].trainNews.disabled=true

Above code in linked Javascript source file (IN frames[1] document head)

Addressing (trainNews) linked CSS file (IN frames[1] head) to allow toggling to different CSS file, also in header (already disabled =true ... next line switches latter to false)

Mozilla documentation mentions "disabled" was Microsoft initially

SEE:

http://developer.mozilla.org/en/HTML/Element/link

Mozilla apparently does implement this, but not using the window.parent.frames[n] syntax

I've been returning to this for days and it is definitely Mozilla. My xp box with IE has no problems with the code.

It seems after trial and error that Mozilla is just not responding to the above location syntax i.e.

window.parent.frames[0]. windows.parent.frames[1]. etc.

When a button is inserted in one of the frames[1] documents the CSS link disabled values are applied correctly without frame[n] being used (from button within the document using alternate CSS links).

Pretty odd as IE functions with addressing from window.parent.frames[0] using window.parent.frames[1] syntax perfectly correctly. What syntax is correct in Mozilla or do the multiple documents loaded into frames[1] need a specific header?

SEE:

http://developer.mozilla.org/En/DOM/Window.frames

(apparently misleading)

Please advise as I am aiming for functionality across platforms.

Regards,

Michael

ProblemType: Bug
Architecture: i386
Date: Mon Oct 13 09:56:47 2008
DistroRelease: Ubuntu 8.04
NonfreeKernelModules: nvidia
Package: firefox-3.0 3.0.3+build1+nobinonly-0ubuntu0.8.04.1
PackageArchitecture: i386
ProcEnviron:
 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games
 LANG=en_GB.UTF-8
 SHELL=/bin/bash
SourcePackage: firefox-3.0
Uname: Linux 2.6.24-19-generic i686

Revision history for this message
mikb (mikb01) said :
#1
Revision history for this message
mikb (mikb01) said :
#2

disabled (originally presumed to be non-functional as Microsoft definition) is functional in Mozilla

Apparently window.parent.frames[n] addressing is the problem syntactically in Mozilla.

disabled used directly functions correctly. Not when addressed using standard syntax from another frame. WHY?

Revision history for this message
Launchpad Janitor (janitor) said :
#3

This question was expired because it remained in the 'Open' state without activity for the last 15 days.