Steunpuntenkaart werkt niet in IE

Bug #578445 reported by Thomas de Graaff
12
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu-NL Website
Fix Released
Undecided
Sebastian Schauenburg

Bug Description

Tijdens de irc meeting van 10 mei 2010 werd aangegeven dat de steunpuntenkaart in IE niet werkt. Wel in Firefox en Chrome.

Revision history for this message
CeesSluis (testcees) wrote :

De steunpuntenkaart werkt goed met Firefox (3.6) en Chrome (4.1) in Windows XP (virtualbox-ose 3.1)

Er is dus een "workaround" beschikbaar op http://www.mozilla.com/nl/

Revision history for this message
Sebastian Schauenburg (sschauenburg) wrote :

We missen exacte informatie (versies, welke functionaliteit werkt niet e.d)

Changed in ubuntu-nl-website:
status: New → Incomplete
Revision history for this message
Ronnie (ronnie.vd.c) wrote :

IE8 (8.0.6001.18702) in VirtualBox 3.1.8 met WinXp Professional als Gast

Ik zie de kaart, linksonder een google zoeken bar en rechtsonder de keuze tussen "Alleen Steunpunten" en "Iedereen". Ik kan wisselen tussen deze items, maar bij geen van beide opties worden items op de kaart weergegeven.

Revision history for this message
Ronnie (ronnie.vd.c) wrote :

Misschien heb ik de plaats van de fout gevonden:

Regel 59 in maps.js

    GDownloadUrl('/mensen.xml',function(data) {
        people = GXml.parse(data).firstChild.childNodes; /* Hierzo */
        for(i=0; i<people.length; i++) {
            addmarker(map, people[i]);
        }

        for(i = 0; i<markers.length; i++) {
            marker = markers[i];
            if(show == MEMBERS) {
                clusterer.AddMarker(marker, marker.title);
            }
            else if((show == SUPPORT) && marker.support) {
                clusterer.AddMarker(marker, marker.title);
            }
        }
    });

De returned data is:
"<?xml version="1.0" encoding="ISO-8859-1"?><people><person smfid="2" name="Dennis Kaarsemaker" lat="52.512864885511505" lon="5.474442601116607" support="1" />......"
(de debugger laat het einde ervan niet zien)

Maar de Array people is leeg.

Revision history for this message
Ronnie (ronnie.vd.c) wrote :

Nog even verder erin gedoken:

Regel 52 van main.js

var b=new ActiveXObject("Microsoft.XMLDOM");b.loadXML(a);return b

a is de xml data (ziet er goed uit)
b is leeg

Dus de fout zit in de parser van MS:
b.loadXML(a)

Ik heb de XML file door de W3schools validator gehaald, maar kan hier geen fout in vinden.

Revision history for this message
Ronnie (ronnie.vd.c) wrote :

My last comment was wrong, the XML is valid and parsed by XMLDOM (did not understand the MS debugger)

I fixed it for IE8:

Line 59 in maps.js:
people = GXml.parse(data).firstChild.childNodes;
to
people = GXml.parse(data).documentElement.childNodes;

Not sure if it works with older versions of IE and for Firefox,Chrome

Ronnie (ronnie.vd.c)
Changed in ubuntu-nl-website:
status: Incomplete → Fix Committed
Revision history for this message
Ronnie (ronnie.vd.c) wrote :

I have tried Firefox with Firebug succesfully, with the new fix

Changed in ubuntu-nl-website:
assignee: nobody → Sebastian Schauenburg (s.schauenburg)
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.