Everything, Everything

2024: January February March April
2023: J F M A M J J A S O N D
2022: J F M A M J J A S O N D
2021: J F M A M J J A S O N D
2020: J F M A M J J A S O N D
2019: J F M A M J J A S O N D
2018: J F M A M J J A S O N D
2017: J F M A M J J A S O N D
2016: J F M A M J J A S O N D
2015: J F M A M J J A S O N D
2014: J F M A M J J A S O N D
2013: J F M A M J J A S O N D
2012: J F M A M J J A S O N D
2011: J F M A M J J A S O N D
2010: J F M A M J J A S O N D
2009: J F M A M J J A S O N D
2008: J F M A M J J A S O N D
2007: J F M A M J J A S O N D
2006: J F M A M J J A S O N D
2005: J F M A M J J A S O N D
2004: J F M A M J J A S O N D
Google Maps Pseudo JavaScript
Tuesday 1st July, 2008 18:18 Comments: 1
if (IE8)
{
  break; // hideously
}
else
{
  if (IE7)
  {
    if (reallyIE8)
    {
      break; // haha, we still got you!
    }
    else
    {
      doCSSHacks(); // must cater for the majority :(
    }
  }
}
I'm sure they must have some code like that somewhere in Google Maps, as even when I emulate IE7 it's still broken. Why, Google, why? I know it's always been broken (and probably always will... or perhaps until IE8 beta 2 arrives), but it really bugged me earlier today. Before anyone says anything, I know that "break;" is used to get out of a loop, and doesn't actually make Google Maps break. It probably would have been better to put something like "break();".
Avatar Sadie - Wednesday 2nd July, 2008 13:54
Having tried to write Javascript of even vaguely moderate complexity, and with the luxury of telling our customers not to use something stupid like IE6, I don't envy Google the task of making a slick application like Google Maps work on every different browser. It may seem that Javascript is taking over the world, but it's no more suited to the task of writing big applications than it ever was.

What they could do instead of trying to deliver the full effect for everybody is detect the broken cases and deliver them a less slick, barely functional version. Like the \"low bandwidth\" version of mail.

I imagine that when SVG support becomes widespread and reliable (in the era of IE10 or IE11 at this rate), there'll be a version of maps that relies far less on ugly hacks.
© Robert Nicholls 2002-2024
The views and opinions expressed on this site do not represent the views of my employer.
HTML5 / CSS3