[Chameleon-dev] [Bug 1516] New: MapDHTML: onerror remove spinner

bugzilla-daemon at bugzilla.maptools.org bugzilla-daemon at bugzilla.maptools.org
Wed Jul 5 04:01:48 EDT 2006


http://bugzilla.maptools.org/show_bug.cgi?id=1516

           Summary: MapDHTML: onerror remove spinner
           Product: Chameleon
           Version: 2.4
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: Widget
        AssignedTo: chameleon-dev at lists.maptools.org
        ReportedBy: bartvde at xs4all.nl


Currently when the MapDHTML image loading fails (red cross), the spinner keeps
on running giving the user the indication that something is still gonna happen.

I propose to use the onerror event handler to also remove the spinner, i.e. the
following change in MapDHTML.js (add onerror=\"MapWHideActivityLayer();\"):

    content = "<img id=\"MapLayerDivImg\" galleryimg=\"no\"
name=\"MapLayerDivImg\" src=\""+gAPixel+"\" width=\""+gMapWiWidth+"\"
height=\""+gMapWiHeight+"\" border=\"0\" onload=\"MapWHideActivityLayer();\"
onerror=\"MapWHideActivityLayer();\"
onmouseover=\"MapWCaptureMouse(arguments[0]);\"
onmouseout=\"MapWReleaseMouse(arguments[0]);\">";
    CWCDHTML_CreateLayer("MapLayerDiv", gMapWhspc, gMapWvspc, gMapWiWidth,
gMapWiHeight,
                          true, content);



------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.


Please do NOT reply to this email, use the link above instead to 
login to bugzilla and submit your comment. Any email reply to this
address will be lost.


More information about the Chameleon-dev mailing list