Ah, I think I got it. I changed:
var map = new GMap2(document.getElementById("map"));
to
map = new GMap2(document.getElementById("map"));
inside of function load()
On Jun 22, 4:04 pm, TheDeal56 <[email protected]> wrote:
> Thanks, Larry. I'm going to be changing some things around in order
> to try and fix the new error, so I thought I should post the error
> that I'm talking about(just in case I screw it up worse than before):
> map is not defined
> hide("1")map.aspx (line 152)
> load()map.aspx (line 238)
> onload(load )mQ9jKVP9...WgQ%3D%3D (line 2)
> [Break on this error] map.closeInfoWindow();
>
> If I change something and it doesn't work, I will revert back to the
> previously saved version of the map. Thanks again, guys. I really do
> appreciate the help, and I feel like I'm learning something.
>
> On Jun 22, 3:46 pm, "[email protected]" <[email protected]>
> wrote:
>
> > On Jun 22, 1:16 pm, TheDeal56 <[email protected]> wrote:
>
> > > I have tried to adapt the method from the link you posted, and it works
> > > (sort of). I was wondering if you wouldn't mind taking a look at the
> > > error that I'm getting when you click on the checkbox at the bottom of
> > > my map.
>
> > The error I get is:
> > Line: 189
> > Char: 2
> > Error: 'document.getElementById(...)' is null or not an object
>
> > document.getElementById(category+"box").checked = true;
>
> > <input id="showrec" type="checkbox" onclick="boxclick(this,'1')"
> > name="test">
>
> > The "name" needs to be category + "box"
>
> > -- Larry
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Maps API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/Google-Maps-API?hl=en
-~----------~----~----~----~------~----~------~--~---