I'm the webmaster for Iron Butt UK. Several of our events lend themselves to tracking multiple riders simultaneously and we use location pages for that wherever that's suitable but we also run pages like www.ironbutt.co.uk/et16live.php from time to time offering individual tracks for several riders. The page works well and achieves its aims of providing a single link to many tracks. The fly in the ointment is that if the page is published before the start or a track drops out multiple alerts are raised reporting that no messages are available.
Would it be possible to specify a flag in the URL to suppress those messages or have them displayed non-modally?
i modified the embed, location page and family viewers to display an application-modal dialog rather than use the browser alert function. i tested this in a page with multiple iframes and it provides the desired behavior.
Well I must say I'm impressed with the speed of your response but it's not quite right I'm afraid.
I now get a different modal box but no maps or tracks in any tripViewer, embed or location window. Worse: I've updated the et16live page to omit the offending messageless iframe and I still get no maps or tracks
I'd prefer no modal boxes at all but maps & tracks are a bit essential, sorry about that.
From my perspective, the message box advising that there are no messages is unnecessary because the header contains "Showing: 0 of 0" which conveys that info albeit in a less obvious way. Unless you have a good reason to show the alert, I'd just comment out that line and leave the map of the world with no tracks.
If a modal dialog is desirable perhaps it could be made optional, either by using a URL parameter or by making the "Showing" span of the header clickable.
there was an issue with google maps earlier this american morning that prevented the maps api from loading properly. the map area was simply empty. google has resolved that issue. what you get now should be an application-modal dialog when no locations exist and satisfies the desired behavior. unless the refresh parameter is set to "no" the page will be refreshed automatically every 10 minutes.