Javascript
Coping with incompatible browsers
by Immanuel Noel on Nov.25, 2009, under Best Practices, Javascript, Tech
You hear of new software’s to browse the internet before you know it, be it new browsers or new versions. But how many of these really run the code on your website as expected? In spite of the W3C’s (World Wide Web Consortium) attempts to establish common standards, not many browsers comply, not to mention the oldest browser around, Internet Explorer. At the same time, you cannot expect users to use a W3C compliant web browser. Ask a newbie if s/he knows what Firefox is. “Fire… What?” would be an expected answer. If you are building a website, make sure its runs on atleast the popular browsers around, IE, Firefox, Chrome, Opera and Safari.
Here I list a few browser compatibility problems I’ve faced, and how I managed to solve them.
(continue reading…)
Maps : Zoom into appropriate location
by Immanuel Noel on Oct.04, 2009, under Code Snippets, Javascript
Visitors end up seeing the entire world on the map when GeoCoordinates are not available.
There are two ways to combat this,
Either position map (calculate longitude) based on the timezone from system date,
The entire map is still seen, but the map is positioned with the visitors location at the center.
Below is the map show to a visitor from northern South America, instead of all continents.

Here is how to do it,
(continue reading…)



