Javascript error

Hi Sitepointers,

I built a website for my sister over the weekend.

In IE it says there is a javascript error.

What is the best way to debug this?
What is the error?
How do I fix it?



The error also occurs in other web browsers too.

IE has developer tools from where you can debug the javascript. Other web browsers have similar javascript consoles.

The error is that firstChild is trying to be applied to null, instead of an element.
It looks like gg() cannot get the firstChild property of the a variable. gg() is called by df(), which in turn is called by ew(), which is loaded as a part of the google maps protocol.

Here’s the root cause of your trouble.

var map = new GMap2(document.getElementById("map"));

You have no element with a unique identifier of “map”