Closed
Bug 76573
Opened 24 years ago
Closed 22 years ago
BG Netbank Denmark [LAYER]JavaScript that doesn't work
Categories
(Tech Evangelism Graveyard :: Danish, defect, P4)
Tracking
(Not tracked)
VERIFIED
WORKSFORME
People
(Reporter: bitkid, Assigned: tristan)
References
()
Details
(Whiteboard: [BANKING][PROPRIETARY-DOM])
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux 2.4.2-22mdksmp i686; en-US; rv:0.8.1+)
Gecko/20010418
BuildID: 20010418
The buttons of the homebanking system I am using doesn't work. It dosn't work in
Konqueror og Netscape either, SO PLEASE help me. Otherwise I will be forced to
use Internet Explorer ;(
Reproducible: Always
Steps to Reproduce:
1.logon.
I'm sorry but you can't see the problem as it requires a logon, which require an
account in the bank. I have submitted the code here, so you can see for yourself.
Actual Results: The buttons are in the top of the page. They are there as they
should be, but the subbuttons never shows. If I then press the main buttons, the
right page shows up, but still the subbuttons never shows up, and I can't access
the rigth subpage. I know this sounds a little confussing but read the code.
Expected Results: The subbuttons should have come out, and they should have
been pressable (is that an english word??:)
I'm sorry but I'm going to submit the intire page script here. I know it is
quite a lot but I think you need it to understand the problem. I think you
aren't that far from the answer because the main buttons does get highlighted as
they should. Here it goes (please remember that this page is from denmark and
therefore the buttons have danish characters in them):
<html>
<head>
<title>Navigation</title>
<script language="JavaScript">
var g_rgTopMenuImagesOn = Array('images/menu/konti_on.gif',
'images/menu/betalinger_on.gif',
'images/menu/bestillinger_on.gif',
'images/menu/indstillinger_on.gif');
var g_rgTopMenuImagesOff = Array('images/menu/konti_off.gif',
'images/menu/betalinger_off.gif',
'images/menu/bestillinger_off.gif',
'images/menu/indstillinger_off.gif');
var g_rgTopMenuImageNames = Array('imgKonti',
'imgBetalinger',
'imgBestil',
'imgIndstil');
var g_rgSubMenuKonti = Array('Kontooversigt', 'Posteringer', 'Søg på posteringer');
var g_rgSubMenuKontiURL = Array('b1.asp', 'b2.asp', 'b3.asp');
var g_rgSubMenuBetal = Array('Kontooverførsel', 'Indbetalingskort', 'Fremtidige
betalinger', 'Faste aftaler', 'Modtageroversigt');
var g_rgSubMenuBetalURL = Array('c1.asp', 'c2.asp', 'd1.asp', 'd1-3.asp', 'e4.asp');
var g_rgSubMenuBestil = Array('Valutabestilling');
var g_rgSubMenuBestilURL = Array('d2.asp');
var g_rgSubMenuIndstil = Array('Stamdata', 'Opsætning af konti', 'Log');
var g_rgSubMenuIndstilURL = Array('e2.asp', 'e3.asp', 'e5.asp');
preloadImages(g_rgTopMenuImagesOn);
preloadImages(g_rgTopMenuImagesOff);
var g_CurrentTopMenuItem = -1;
var g_CurrentSubMenuItem = -1;
function writeSubMenuTable(iSelectedItem)
{
var sSubTable;
var i;
sSubTable = '<table border="0" cellpadding="0" cellspacing="0">';
sSubTable += '<tr>';
sSubTable += '<td valign="top"><img src="images/menu/line_onh.gif" width="1"
height="19"></td>';
sSubTable += '<td><img src="images/clear.gif" width="5" height="17"
border="0"></td>';
switch (g_CurrentTopMenuItem) {
case 0: sSubTable += generateSubMenuItems(g_rgSubMenuKonti, g_rgSubMenuKontiURL,
iSelectedItem);
break;
case 1: sSubTable += generateSubMenuItems(g_rgSubMenuBetal, g_rgSubMenuBetalURL,
iSelectedItem);
break;
case 2: sSubTable += generateSubMenuItems(g_rgSubMenuBestil, g_rgSubMenuBestilURL,
iSelectedItem);
break;
case 3: sSubTable += generateSubMenuItems(g_rgSubMenuIndstil,
g_rgSubMenuIndstilURL, iSelectedItem);
break;
}
sSubTable += '</tr></table>';
if (document.all) {
ieWriteContent(sSubTable);
} else {
nnWriteContent(sSubTable);
}
}
function ieWriteContent(sContent)
{
document.all.idSubMenu.innerHTML = sContent;
}
function nnWriteContent(sContent)
{
document.idSubMenu.document.open();
document.idSubMenu.document.write(sContent);
document.idSubMenu.document.close();
}
function generateSubMenuItems(rgSubmenu, rgSubmenuURL, iSelectedItem)
{
var sItems = '';
for(var i = 0; i < rgSubmenu.length; i++) {
sItems += '<td><a href="' + rgSubmenuURL[i] + '" target="content" ';
if (iSelectedItem == i) {
sItems += 'class="itemSelected"';
} else {
sItems += 'class="itemNormal" onclick="writeSubMenuTable(' + i + ')" ';
}
sItems += 'onmouseover="return removeStatus();" onfocus="return removeStatus();">'
+ rgSubmenu[i] + '</a></td><td> </td>';
if(i < rgSubmenu.length - 1)
sItems += '<td><img src="images/menu/line.gif" width="2" height="13" border="0"
align="absmiddle"></td><td> </td>';
}
g_CurrentSubMenuItem = iSelectedItem;
return sItems;
}
function preloadImages(rgImages)
{
var img;
var i;
for(i = 0; i < rgImages.length; i++) {
img = new Image();
img.src = rgImages[i];
}
}
function selectedTopMenuItem(iMenuItem, iSubMenuItem)
{
var sImgName = g_rgTopMenuImageNames[iMenuItem];
var sImgNameSep = sImgName + 'Sep';
if (g_CurrentTopMenuItem != -1) { // Clear current selected menu
var sImgCurrentName = g_rgTopMenuImageNames[g_CurrentTopMenuItem];
var sImgCurrentNameSep = sImgCurrentName + 'Sep';;
document.images[sImgCurrentName].src = g_rgTopMenuImagesOff[g_CurrentTopMenuItem];
document.images[sImgCurrentNameSep].src = 'images/menu/line_off.gif'
}
document.images[sImgName].src = g_rgTopMenuImagesOn[iMenuItem];
document.images[sImgNameSep].src = 'images/menu/line_onh.gif';
g_CurrentTopMenuItem = iMenuItem;
writeSubMenuTable(iSubMenuItem);
}
function removeStatus() {
window.status = '';
return true;
}
</script>
<style>
.itemNormal {font-weight: normal; font-size: 11px; color: #ffcc99; font-family:
Verdana, Arial, Helvetica, sans-serif; text-decoration: none }
.itemSelected {font-weight: bold; font-size: 11px; color: #ffcc99; font-family:
Verdana, Arial, Helvetica, sans-serif; text-decoration: none }
.rykop {margin-top: 0pt; padding-top: 0pt}
</style>
</head>
<body onload="writeSubMenuTable(-1);" bgcolor="#666666"
background="images/bg.gif" text="#000000" link="#000000" vlink="#000000"
alink="#990000" leftmargin="0" topmargin="5" marginwidth="0" marginheight="1">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td rowspan="2" width="55" valign="bottom"><img src="images/logo.gif" width="55"
height="48" name="Logo" border="0"></td>
<td><img src="images/clear.gif" width="1" height="12"><br><img
src="images/logotxt.gif" width="133" height="19" border="0"><br></td>
</td><td align="right" valign="top"><img src="images/clear.gif" width="1"
height="1"><br>
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<tr><td colspan="2"><img src="images/clear.gif" width="1" height="4"></td></tr>
<tr>
<td valign="top"><a href="logoff.asp" target="_top" onmouseover="return
removeStatus();" onfocus="return removeStatus();"><img src="images/logoff.gif"
width="48" height="16" alt="Logoff" border="0"></a></td>
<td nowrap> </td>
</tr>
<tr><td colspan="2"><img src="images/clear.gif" width="1" height="16"></td></tr>
</table>
</td></tr>
<tr><!-- The top menu -->
<td valign="bottom" width="100%" nowrap><a href="b1.asp" target="content"
onclick="selectedTopMenuItem(0,0);" onmouseover="return removeStatus();"
onfocus="return removeStatus();"><img name="imgKonti"
src="images/menu/konti_off.gif" height="17" border="0"></a><img
name="imgKontiSep" valign="top" src="images/menu/line_off.gif" width="1"
height="17" border="0"><a href="c1.asp" target="content"
onclick="selectedTopMenuItem(1,0);" onmouseover="return removeStatus();"
onfocus="return removeStatus();"><img name="imgBetalinger"
src="images/menu/betalinger_off.gif" height="17" border="0"></a><img
name="imgBetalingerSep" valign="top" src="images/menu/line_off.gif" width="1"
height="17" border="0"><a href="d2.asp" target="content"
onclick="selectedTopMenuItem(2,0);" onmouseover="return removeStatus();"
onfocus="return removeStatus();"><img name="imgBestil"
src="images/menu/bestillinger_off.gif" height="17" border="0"></a><img
name="imgBestilSep" valign="top" src="images/menu/line_off.gif" width="1"
height="17" border="0"><a href="e2.asp" target="content"
onclick="selectedTopMenuItem(3,0);" onmouseover="return removeStatus();"
onfocus="return removeStatus();"><img name="imgIndstil"
src="images/menu/indstillinger_off.gif" height="17" border="0"></a><img
name="imgIndstilSep" valign="top" src="images/menu/line_off.gif" width="1"
height="17" border="0"></td>
<td width="100%" valign="bottom" align="left"><img src="images/menu/end.gif"
width="255" height="17"></td>
</tr>
<tr>
<td colspan="3" bgcolor="#990000" valign="top">
<layer id="idSubMenu" top="60" width="600">
<table border="0" cellpadding="0" cellspacing="0">
<tr>
<td valign="top"><img src="images/menu/line_onh.gif" width="1" height="19"></td>
<td><img src="images/clear.gif" width="5" height="17" border="0"></td>
</tr></table>
</layer>
</td>
<td valign="top"><img src="images/menu/line_on.gif" width="1" height="19"></td>
</tr>
<tr>
<td colspan="3" bgcolor="#660000"><img src="images/clear.gif" width="1"
height="4" border="0"></td>
</tr>
</table>
</body>
</html>
Comment 1•24 years ago
|
||
bad browser sniff: directs browsers not supporting document.all to the
nnWriteContent() function which uses the old NS4.x dom:
if (document.all) {
ieWriteContent(sSubTable);
} else {
nnWriteContent(sSubTable);
}
...
function ieWriteContent(sContent)
{
document.all.idSubMenu.innerHTML = sContent;
}
function nnWriteContent(sContent)
{
document.idSubMenu.document.open();
document.idSubMenu.document.write(sContent);
document.idSubMenu.document.close();
}
Evangelism, anyone?
Comment 2•24 years ago
|
||
Yes, there are at least two problems here:
1. <layer id="idSubMenu" top="60" width="600">
Mozilla/Netscape6 does not support layers. You need to use <DIV> instead.
2. If an HTML element has id="idSubMenu", you can no longer access it by
doing document.idSubMenu. You must do document.getElementById("idSubMenu").
These are W3C standards. You can learn more about these issues by referring
to bug 50711 and the links there. In particular, be sure to see this one:
http://sites.netscape.net/ekrockhome/standards.html
Reassigning to Evangelism component -
Assignee: rogerl → blakeross
Status: UNCONFIRMED → NEW
Component: Javascript Engine → Evangelism
Ever confirmed: true
OS: Linux → All
QA Contact: pschwartau → zach
Summary: javascript that doesn't work → [LAYER]JavaScript that doesn't work
Comment 3•24 years ago
|
||
Reassigning evangelism bugs to new owner (bclary@netscape.com).
Assignee: blakeross → bclary
Updated•24 years ago
|
Whiteboard: [BANKING][PROPRIETARY-DOM]
Updated•24 years ago
|
Priority: -- → P4
Comment 4•24 years ago
|
||
Assigning to Euro Evangelist
Assignee: bclary → nitot
Summary: [LAYER]JavaScript that doesn't work → BG Netbank Denmark [LAYER]JavaScript that doesn't work
Updated•23 years ago
|
Component: Evangelism → European
Product: Browser → Tech Evangelism
Version: other → unspecified
Comment 5•23 years ago
|
||
Moving to new component "West Europe". European component is being removed.
See bug 95808 for details.
Component: European → West Europe
QA Contact: zach → caillon
Comment 6•23 years ago
|
||
reporter, is this still a problem?
Comment 7•23 years ago
|
||
bug 94474 blocks log-in to the page.
since theres been a redesign, well probably see that this bug is invalid.
Depends on: 94474
Comment 8•22 years ago
|
||
http://www.bgbank.dk/ is identical in mozilla and IE.
can anyone with an account here test ? if not, well we will need a test acount.
Comment 9•22 years ago
|
||
regarding comments #7 and #8: mat, that is already detailed in a seperate bug,
as comment #8 describes, therefore I think the answer to comment #8 should be
given in bug http://bugzilla.mozilla.org/show_bug.cgi?id=94474 instead of here,
the same goes for questions, I would think ;)
I agree per comment #7: This bug should be marked INVALID, as the issue of this
bug is nolonger visible for me on bgnetbank.dk with trunk nightly on XP.
- it is however on www.danskebank.dk - but then that´s another issue as well.
Comment 10•22 years ago
|
||
Since this site has been redesigned, I have marked this bug INVALID.
Happy New Year to everyone!
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
Comment 11•22 years ago
|
||
reopen so i can change to WFM
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Comment 12•22 years ago
|
||
Changed to WORKSFORME
Status: REOPENED → RESOLVED
Closed: 22 years ago → 22 years ago
Resolution: --- → WORKSFORME
Comment 14•22 years ago
|
||
resolved euro west non-.com url bugs to other
Component: Europe: West → Other
Updated•21 years ago
|
Component: Other → Danish
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
•