Changeset 125


Ignore:
Timestamp:
Oct 21, 2006, 11:59:51 PM (13 years ago)
Author:
David Sheldon
Message:

Should give better error on failure to download the markers.

Location:
trunk/npemap.org.uk/static/tiles
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/npemap.org.uk/static/tiles/grid.css

    r114 r125  
    3131                 
    3232         }
    33    #spinner {
     33
     34   span.hidden {
     35       display: none;
     36   }
     37
     38   span.loading {
    3439       background-color: khaki;
    3540       color: black;
    3641       font-weight: bold;
    3742   }
     43
     44   span.error {
     45       background-color: khaki;
     46       color: red;
     47       font-weight: bold;
     48   }
     49
  • trunk/npemap.org.uk/static/tiles/map.html

    r119 r125  
    3232           </tr>
    3333         </table>
    34          <span style="display: none" id="spinner">Loading...</span>
     34         <span class='hidden' id="spinner">Loading...</span>
    3535
    3636                <div>
  • trunk/npemap.org.uk/static/tiles/mapTiles.js

    r122 r125  
    260260 
    261261  removeMarkers();
    262         spinnerElement.style.display = 'block';
     262  spinnerElement.className = 'loading';
     263  spinnerElement.innerHtml = 'Loading...';
     264 
    263265  YAHOO.util.Connect.asyncRequest('GET', url, callback); 
    264266}
    265267
    266268function completeMarkers() {
    267         spinnerElement.style.display = 'none';
     269        spinnerElement.className = 'hidden';
    268270}
    269271
     
    275277var failHander = function(o) {
    276278  // Don't do anything
    277   alert("Failed");
     279  spinnerElement.className = 'error';
     280  spinnerElement.innerHtml = 'Problem showing existing data.';
    278281}
    279282
Note: See TracChangeset for help on using the changeset viewer.