Closed Bug 174210 (servisco.com.pl) Opened 22 years ago Closed 21 years ago

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

Categories

(Tech Evangelism Graveyard :: Polish, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED FIXED
Future

People

(Reporter: gabrielbaines, Assigned: piskozub)

References

()

Details

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
Accepting.
Priority: -- → P3
Target Milestone: --- → Oct
Accepting for real.
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
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);
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
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
Alias: servisco.com.pl
Second evangelism letter sent.
Target Milestone: Dec → Feb
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
tech evang june 2003 reorg
Component: Europe: Central → Polish
Target Milestone: Future → ---
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.
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
Closed: 21 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.