Monday, November 22, 2010

Apparent java script problem with IE8

<a href="http://www.somesite.com"
onclick="location.href='./out.php?ID=XXX';return false;">
SITE NAME</a>


The above works in every browser I tested except IE8. I've read many others have the same issue, but most forums were related to ASP, VB and .NET (whose developer's have an inclination to use Microsoft products for all things from browsing to buttering toast) and the suggested workarounds were simply not applicable to PHP.

Some suggestions relying on other Microsoft products looked incredibly convoluted, but then the simplest ASP script looks like spaghetti code to me. Still, they must be great platforms, after all, you have to pay through the nose for the pleasure to work with them.

Anyways.. possibly, adding this to the meta tag section of your pages will fix it.. if you are lucky.. Do you feel lucky ? Well, do ya ?

<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />

This reportedly tells IE8 to act like IE7 which is slightly less broken, a sure sign of Microsoft's version of progress.

YO MICROSOFT ! There is a java script issue with IE8 ! You know, java script? that standardized browser unspecific language invented by your arch nemesis Netscape© that like so many others you've attempted to bastcardize into a proprietary McLanguage ?

I expect a 134MB down-loadable patch to address this issue within the month.

And by the way, quit trying to create your own version of web standards in order to broaden your attempted monopoly on all things computer related. Just be happy with your domination of the operating system, office software and game console markets.

Sunday, September 26, 2010

Gonna party like it's 1989 !

Sticking with my stolen song title methodology.. lame, I know.

Anyways, I thought I'd touch on one of the little nuances of web development that can have a pretty large impact on a website's usability. Link colors and decoration.

Webmasters have always had control over the color of their textual links, via the BODY tag, Then along came CSS and it became the new rage to make textual links look "cool". Of course "coolness" is in the eye of the beholder, and unfortunately many webmasters wound up making their textual links look nearly identical to their regular text, in turn making it difficult for people to spot links that they might be interested in.

Even worse, often there was no way to tell which links the viewer had already visited, causing some visitors to unintentionally view the same page twice, discovering it isn't what they wanted (again), getting frustrated and going elsewhere.


Usability is just as crucial as the content. After all what use is great content if it isn't accessible, sort of like a museum full of masterpieces, except its never open.

Along with slow page loads, a poorly though out navigation scheme, which includes link color and decoration, is one of the reasons people will abandon your site and go elsewhere.

When HTML first evolved into common use, the web browsers of the day came up with a common scheme, and surprisingly all the companies making browsers agreed, and displayed them the same way. Something almost unheard of today.. but I digress.

  • There is a reason the default link color is blue and underlined.
  • There is a reason the default visited link color is purple.
  • There is/was a reason the default active link color is red.

Even the behemoth Google sticks to this standard. Actually they enforce it via CSS, just in case you've twiddled with the browser default's.

Granted, active link color isn't really an issue today. Hopefully the viewer's computer, and the web server you use results in a nearly instantaneous reaction, but back in the day, it was necessary to tell the viewer "we're working on it, keep your shirt on, and don't click the link again !". If your site has an international audience, it's probably still a good idea to make active links stand out, since there is a chance people will repeatedly click a link, which just bogs down your server, and probably frustrates all your viewers.

Of course you needn't use these exact colors, but do make certain your textual links don't blend in too well with your regular text. Also be sure to differentiate between links to pages that the viewer has already seen. I'm also a staunch supporter of leaving links underlined, but that is likely just personal preference.


Until next time HAPPY WEBMASTERING!