Closed
Bug 209428
Opened 23 years ago
Closed 22 years ago
http://www.msz.gov.pl/ - left hand menu does not work [document.layers and friends]
Categories
(Tech Evangelism Graveyard :: Polish, defect, P1)
Tech Evangelism Graveyard
Polish
Tracking
(Not tracked)
RESOLVED
FIXED
Jul
People
(Reporter: pbartecki, Assigned: marcoos)
References
()
Details
(Whiteboard: [havefix][havecontact][not-responsive])
Attachments
(1 file, 2 obsolete files)
|
12.82 KB,
application/x-javascript
|
Details |
User-Agent: Mozilla/5.0 (Windows; U; Win98; PL; rv:1.4b) Gecko/20030516 Mozilla Firebird/0.6
Build Identifier: Mozilla/5.0 (Windows; U; Win98; PL; rv:1.4b) Gecko/20030516 Mozilla Firebird/0.6
Ministry of Foreign Affairs uses non standard code on their webpage:
http://www.msz.gov.pl/ [document.layers/document.all] preventing real browsers
from displaying the content properly.
Code contained in:
http://www.msz.gov.pl/js/layers.js
http://www.msz.gov.pl/js/preload.js
Stylesheet is also not loaded properly so fonts and layout (top of the page and
others) are messed up.
http://www.msz.gov.pl/js/css.js
I've sent a note but without going into much of details so feel free to
contact them again ;) Email addresses used:
dsi@msz.gov.pl (MSZ contact)
serwis@akonet.pl (webmaster)
Reproducible: Always
Steps to Reproduce:
1. Go to http://www.msz.gov.pl/js/layers.js to see why MSZ is not usuable under
any standard compliant browser.
2.
3.
Comment 1•23 years ago
|
||
*** Bug 209427 has been marked as a duplicate of this bug. ***
| Assignee | ||
Comment 2•23 years ago
|
||
Confirming. Strange, I remember this website working correctly. Probably
webmaster has changed and replaced good scripts with some obsolete ones.
| Assignee | ||
Comment 3•23 years ago
|
||
The evil one is the http://www.msz.gov.pl/js/layers.js file, which is made of
two previous scripts - its first part is NN4-IE4 only, its second part is
Gecko-aware. Probably the new webmaster just copied&pasted some scripts without
really knowing what he was doing.
This script is a little mess.
A patched, ugly-but-working, version of layers.js follows (can somebody check if
my corrections don't break the site in MSIE? I'm on Linux now, checked Mozilla
and Konqueror only)
| Assignee | ||
Comment 4•23 years ago
|
||
Comment 5•23 years ago
|
||
Accepting and confirming.
Piotr: Do you want to become the default QA for Polish bugs? If so, please send
me an email - Jacek
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Priority: -- → P1
Target Milestone: --- → Jul
Comment 6•23 years ago
|
||
Now really reassigning to myself.
Assignee: polish → piskozub
Status: ASSIGNED → NEW
| Assignee | ||
Comment 8•23 years ago
|
||
Correction in css.js should be just replacing:
if (document.all)
with
if (document.getElementById||document.all)
But I don't understand why the Ministry wants to disable stylesheets for users
that have JS turned off (or use Amaya etc.). They should have made just one
stylesheet and use some CSS-tricks (such as "/*/*/") to hide things that NN4
cannot handle from it...
| Assignee | ||
Comment 9•23 years ago
|
||
My previous layers.js version made Mozilla do lots of useless calculations,
which caused Mozilla to hang for a while.
This was due to the fact that there are many functions in layers.js that aren't
really used (checked in MSIE 6.0)...
I've set up a corrected version at http://www.marcoos.zwm.punkt.pl/bugzilla/msz
- the HTML is the original one with only paths changed to work properly. So if
MSZ uploads our versions of layers.js and css.js, their website will work ok in
all browsers.
Tested:
- Mozilla 1.4 RC 1 (Linux)
- Netscape 7.02 (Linux)
- Netscape 7.02 (Windows)
- Internet Explorer 6 (Windows)
- Konqueror 3.1 (Linux)
- Opera 7.11 (Linux, has some quirks with image positioning, but the menu works)
I didn't touch the Netscape 4 stuff in the script (only changed ns4 to isNS4,
because the browser sniffing was done TWICE!), so this probably should still
work in this ancient browser.
Corrected layers.js (with unused and doubled functions removed) follows.
(Note: www.marcoos.zwm.punkt.pl/bugzilla/msz will be pulled of from my server
when MSZ corrects their website)
| Assignee | ||
Comment 10•23 years ago
|
||
Attachment #125680 -
Attachment is obsolete: true
| Assignee | ||
Updated•23 years ago
|
Attachment #125692 -
Attachment description: layer.js - corrected version → layers.js - corrected version
Comment 11•23 years ago
|
||
just a small remark about your layers.js :
why do you sniff for gecko instead of just sniffing for the dom functions you
use, i.e. document.getElementById ?
also, you might want to change this :
document.getElementById(div_name).style.top = y;
document.getElementById(div_name).style.left = x;
into this:
document.getElementById(div_name).style.top = y + "px";
document.getElementById(div_name).style.left = x + "px";
same goes for all the other places where you set dimensions...
Whiteboard: [havefix][havecontact]
| Assignee | ||
Comment 12•23 years ago
|
||
mat: this was (one of) the browser-sniffing code from the original layers.js.
I just didn't notice that. ;)
I'm gonna correct this, but will check for document.getElementById&&!document.all,
just to make IE use document.all... ;)
| Assignee | ||
Comment 13•23 years ago
|
||
Attachment #125692 -
Attachment is obsolete: true
| Assignee | ||
Comment 14•23 years ago
|
||
Sent email to dsi@msz.gov.pl and serwis@akonet.pl about the fixed scripts.
| Assignee | ||
Comment 15•23 years ago
|
||
I did some search and found that the layers.js file is linked to many pages
created by Akonet.pl (including www.akonet.pl), but often its functions aren't used.
We should keep an eye on Akonet.pl, and check if there are other websites made
by them, which use obsoleted and non-standard techniques.
| Assignee | ||
Comment 16•23 years ago
|
||
There is some progress on msz.gov.pl - correct stylesheet is being loaded
and the menu started to work, but it isn't positioned correctly.
(I've got no reply from MSZ nor Akonet, though).
| Assignee | ||
Comment 17•23 years ago
|
||
This is because the initDPointer() function isn't executed.
The current <body> tag is:
<body bgcolor="#ffffff" text="#000000" onload="preloadImages();">
adding initDPointer() to the onload parameter makes the menu position correctly:
<body bgcolor="#ffffff" text="#000000" onload="preloadImages();initDPointer()">
I'm going to e-mail the webmaster once again. :)
| Assignee | ||
Comment 18•23 years ago
|
||
Sent email to serwis@akonet.pl and dsi@msz.gov.pl asking to add initDPointer()
to onload parameter.
| Assignee | ||
Comment 19•23 years ago
|
||
No progress.
Current workaround: after going to www.msz.gov.pl enter this in your location bar:
javascript:initDPointer()
and the website works just fine.
I'm gonna contact the webmasters once again on Monday.
| Assignee | ||
Comment 20•23 years ago
|
||
No replies from Akonet nor the Ministry's computer department.
Sent yet another e-mail to serwis@akonet.pl and dsi@msz.gov.pl, asking to add
initDPointer() to onload parameter of the <body> tag.
If this has no effect, I will try to contact Promotion Department, dprom@msz.gov.pl.
| Assignee | ||
Comment 21•23 years ago
|
||
I've got a reply from Mr. Konrad Galczynski <KONRAD.GALCZYNSKI@msz.gov.pl>
saying that they forward all my messages to Akonet. It's interesting, because
all my e-mails sent do dsi@msz.gov.pl already had serwis@akonet.pl as
carbon-copy recipient.
The rest of that e-mail (sent in the HTML format; the source says the mail has
been written as an MS Word document and then converted into HTML) consisted of
some false statements about Mozilla.
| Assignee | ||
Comment 22•23 years ago
|
||
Yet another e-mail send to dsi and dprom@msz.gov.pl, cc'ed to serwis@akonet.pl
and European Union Department in The Foreign Ministry (with information about
European Parliament's resolution concerning accessibility of public websites,
see
http://europa.eu.int/information_society/topics/citizens/accessibility/web/wai_2002/ep_res_web_wai_2002/index_en.htm
for more information).
Comment 23•23 years ago
|
||
I have sent an e-mail as an ordinary user asking them why the menu doesn't work:)
I have also checked out the workaround you provided, but there are still a few
problems with the site - the pop-out menus appear in various places (I don't
mean the entire page but the wired positioning of the pop-out list within the
menu item) and then, they don't dissapear when the cursor leaves them. But it is
still better than the current state.
| Assignee | ||
Comment 24•23 years ago
|
||
The strange position of the menu is what they want - compare www.msz.gov.pl with
my workaround in Mozilla and without my workaround in Opera or Internet
Explorer. It's the same.
They *want* the menu to be displayed in this weird way.
Comment 25•23 years ago
|
||
I wrote "wired" instead of "weird" in my previous comment:) My mistake. Well,
it's not wired:)
I opened the site with Opera, and it is very.. strange indeed, I must say. I
don't like such menus at all, but this one seems particularly nasty to me:) I
don't know why they want it to work this way. Maybe we should provide them with
an appropriate CSS menu, that works only in Mozilla this time:)
In my browser the menu looks even worse, because I have set the minimal font
size to 10 points, so the lines of the menu items sometimes break, which causes
the pop-out lists to appear sometimes higher and sometimes lower... that's a
little bit confusing to me, since quite often the lists look as if they
poped-out from the adjecent menu item. Well, i hope you understand what I mean...
Pity they don't conform to WCAG 1.0 - that would make the site easier to read..
I hate those small fonts. But Bugzilla is the place to discuss that:)
Cheers.
| Assignee | ||
Comment 26•22 years ago
|
||
Yet another e-mail sent. Asking to add initDPointer() to onload. That's all the
site needs now (well, "now" means "since July" ;)) to work in Mozilla.
This time to serwis@akonet.pl only.
To comment 25:
WCAG conformace is a Good Thing[TM], but you probably know how many problems we
have with asking people to add just one word and a pair of brackets to their
site. WCAG will have no power in this country until Poland joins the EU next
year (at least).
Assignee: piskozub → bugzilla
Status: ASSIGNED → NEW
| Assignee | ||
Comment 27•22 years ago
|
||
Marking this as ASSIGNED (should have done it long ago).
Status: NEW → ASSIGNED
| Assignee | ||
Updated•22 years ago
|
Whiteboard: [havefix][havecontact] → [havefix][havecontact][not-responsive]
| Assignee | ||
Comment 28•22 years ago
|
||
Site has been corrected at last (the script seems to be rewritten).
Resolving FIXED. :))
Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
| Assignee | ||
Comment 29•22 years ago
|
||
*** Bug 209427 has been marked as a duplicate of this bug. ***
Updated•11 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
•