Bug 174210 (servisco.com.pl)

servisco.com.pl - Clickable map uses document.all

RESOLVED FIXED in Future

Status

Tech Evangelism Graveyard
Polish
P3
normal
RESOLVED FIXED
15 years ago
3 years ago

People

(Reporter: Gabriel Baines, Assigned: Jacek Piskozub)

Tracking

unspecified
Future

Details

(URL)

(Reporter)

Description

15 years ago
The problem is with http://www.servisco.com.pl/html/mapa.htm page, that can be
reached from http://www.servisco.com by clicking 'O firmie' -> 'Adresy'. 

The page shows a clickable map of Poland. Unfortunatelly, the JavaScript code
that handles it tries to use document.all or document.layers. Since none of them
exist in Mozilla DOM, clicks on the map are silently ignored.

Note: the problem has been originally reported on MozillaPl.org forum: 
http://mozillapl.org/forum/viewtopic.php?t=980
(Assignee)

Comment 1

15 years ago
Accepting.
Priority: -- → P3
Target Milestone: --- → Oct
(Assignee)

Comment 2

15 years ago
Accepting for real.
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
(Assignee)

Comment 3

15 years ago
For the map to work it is enough to add one line changing

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++)
x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++)
x=MM_findObj(n,d.layers[i].document); return x;
}

into 

function MM_findObj(n, d) { //v3.0
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n];
  if(!(x=d[n])&&d.getElementById) x=d.getElementById(n);
  for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++)
x=MM_findObj(n,d.layers[i].document); return x;
}

The actuall addition is 
  if(!(x=d[n])&&d.getElementById) x=d.getElementById(n);
(Assignee)

Comment 4

15 years ago
The contact address innthe source of the map page is smart@supermedia.pl
Servisco contact address (probablu useless fo us) is marketing@servisco.com.pl
(Assignee)

Comment 5

15 years ago
I sent a modified LAYERS letter, suggesting the above mentioned change to both
the addresses from comment 4 plus webmaster and postmaster (as usually). 

Webmaster bounced, the rest was OK.
Target Milestone: Oct → Dec
(Assignee)

Updated

15 years ago
Alias: servisco.com.pl
(Assignee)

Comment 6

15 years ago
Second evangelism letter sent.
Target Milestone: Dec → Feb
(Assignee)

Comment 7

15 years ago
No progress. Futuring the bug.
Target Milestone: Feb → Future
Summary: Clickable map at www.servisco.com.pl uses document.all → servisco.com.pl - Clickable map uses document.all

Comment 8

15 years ago
tech evang june 2003 reorg
Component: Europe: Central → Polish
Target Milestone: Future → ---
(Assignee)

Updated

15 years ago
Target Milestone: --- → Future
I've set up a temporarily corrected version of the page (see Jacek's comment 3) 
page at http://www.marcoos.zwm.punkt.pl/bugzilla/servisco/mapa.htm

Sent letter to:
info@supermedia.pl, smart@supermedia.pl and marketing@servisco.com.pl.
smart@supermedia.pl bounced.
Site has been fixed and Jacek's modifications to dreamweaver's functions applied.

Checked with Netscape 7.1 and Firebird-trunk.

-> FIXED.
Status: ASSIGNED → RESOLVED
Last Resolved: 14 years ago
Resolution: --- → FIXED
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.