Closed
Bug 276853
Opened 20 years ago
Closed 14 years ago
pssbeveiliging.nl - vbscript drop down menu not working
Categories
(Tech Evangelism Graveyard :: Dutch, defect)
Tech Evangelism Graveyard
Dutch
Tracking
(Not tracked)
RESOLVED
INCOMPLETE
People
(Reporter: info, Unassigned)
References
()
Details
(Whiteboard: [sg:nse])
Dear sir/maddam,
I discovered a problem creating a webpage.
For the website www.pssbeveiliging.nl I'm using a javascript for the menu. It's
a drop down menu but it doesn't drop down in Firefox. This menu is working fine
in Internet Explorer but is not working in my favorite browser Firefox.
This is the script:
<Script Language="VBscript">
<!--
Option Explicit
DIM menuID,menuObj,cellBk
SUB ShowHide(menuID)
menuObj = "Link" & menuID
cellbk = "Head" & menuID
// CHECK IF OPEN
if document.all.item(menuObj).className = "LINKSON" then 'IF MENU OPEN
THEN CLOSE
document.all.item(menuObj).className = "LINKSOFF"
document.all.item(cellBk).style.backgroundColor = "#0000FF" ' SET CELL
BACKGROUND COLOUR BLUE
ELSE
document.all.item(menuObj).className = "LINKSON" ' OPEN MENU
document.all.item(cellBk).style.backgroundColor = "#0000FF" ' SET CELL
BACKGROUND COLOUR light blue
END IF
END SUB
-->
</Script>
You can check out the complete source at www.pssbeveiliging.nl
If you want to know more don't hescitate to contact me. I hope you solve it fast
and that I will hear soon from you!
Your sincerely,
Wytse Zwikker from Holland
Updated•20 years ago
|
Group: security
Whiteboard: [sg:nse]
The problem lies in the document.all that you used. Replace it by document.GetElementById and it'll work In 1998, both IE and Netscape came with their version 4, to do what you try to do, Netscape introduced document.layer and IE introduced document.all. Both where not ratified by the ECMA recoomendations for Javascript. For this the document.GetElementById was introduced. This is the standard and is supported by all browsers since 1998. IE [and opera] still support document.all for backwards compatibility, but the tag itself should not be used in web sites anymore. I hope this helps. This is a Tech Evang issue, moving it Dutch Tech Evang and reassigning adding URL field: www.pssbeveiliging.nl Changing summary, replaced "Java" by "Javascript" Confirming
Status: UNCONFIRMED → NEW
Component: JavaScript Console → Dutch
Ever confirmed: true
Product: Firefox → Tech Evangelism
QA Contact: firefox.js-console → dutch
Summary: java drop down menu not working → javascript drop down menu not working
Version: 1.0 Branch → unspecified
also adding URL to summary.
Summary: javascript drop down menu not working → pssbeveiliging.nl - javascript drop down menu not working
patrick.hendriks+bugzilla@gmail.com: close, but wrong standards body, ECMA doesn't care about DOM, that's a w3c thing.
Darn :o Removing me from CC:list [i'm monitoring dutch@evangelism.bugs already]
Comment 5•20 years ago
|
||
Ehm, people, are you blind? This is VBScript (short for Visual Basic Scripting Edition), not JavaScript. I don't think there is any real interest in implementing that in Mozilla.
Assignee: bugs → dutch
OS: Windows XP → All
Hardware: PC → All
Summary: pssbeveiliging.nl - javascript drop down menu not working → pssbeveiliging.nl - vbscript drop down menu not working
(In reply to comment #5) > Ehm, people, are you blind? This is VBScript (short for Visual Basic Scripting > Edition), not JavaScript. Erik, the reporter, who's also seems to be the site's web master reported this under JavaScript Console, with "Java" in the summary. Hence the confusion.
Comment 7•14 years ago
|
||
INCOMPLETE due to lack of activity since the end of 2009. If someone is willing to investigate the issues raised in this bug to determine whether they still exist, *and* work with the site in question to fix any existing issues, please feel free to re-open and assign to yourself. Sorry for the bugspam; filter on "NO MORE PRE-2010 TE BUGS" to remove.
Status: NEW → RESOLVED
Closed: 14 years ago
Resolution: --- → INCOMPLETE
Updated•10 years ago
|
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•