Monday, July 5, 2010

Message: Not Implemented (Annoying Javascript Error)

Hello Everyone,

Recently i was doing some development stuff on Google maps API. After i finished my integration of google maps and google street view API with my application, during testing, i found an annoying Message: Not Implemented error message and the line number to which it was pointing was 1 and was senseless. I did'nt get this error on other browsers like Chrome & Firefox. This error was specific to internet explorer only (Why the hell they keep javascript's different for different browser's god knows !!!). Well, so i did some research and ultimately found a solution.

The error was in one of my javascript's onload function.

In my buggy code it was something like below ::

body.onload=loadMap();

I removed those open close parenthesis and my error got vanished.

body.onload=loadMap;

Internet explorer was really pointing to a strange line number to which you can never imagine this sort of error.

Anyways, thank god to internet explorer 8 javascript debugger which really helped me in finding the correct issue.

Cheers,

Ujjwal Soni

No comments: