On 28 jan, 22:54, Rossko <[email protected]> wrote:
> > As you can see I've removed some events but I still have a problem on
> > the line 54
> > GEvent.addListener(map,"infowindowclose", function() {
> >         document.getElementById
> > (lastlinkid).style.background="#ffffff";
> >         });
> > because of the lastlinkid ; I don't see to get it right.
>
> Your function myclick() called from the sidebar is still not setting
> 'lastlinkid' for later use.
> For some reason you've removed the code that calculates 'linkid' from
> 'i', so you'd have nothing to save in 'lastlinkid' yet anyway.

What I don't understand is that in the example from econym (http://
econym.org.uk/gmap/example_map2c.htm) the function myclick works
without adding any reference to lastlinkid or linkid variables.
I made another test :

but after three clicks on labels in the sidebar here the errors I get
from Firebug :
document.getElementById(linkid) is null
[Break on this error] document.getElementById
(linkid).style.background="#ffff00";
lieux_test.html (ligne 78)
document.getElementById(lastlinkid) is null
[Break on this error] document.getElementById
(lastlinkid).style.background="#ffffff";
lieux_test.html (ligne 54)
document.getElementById(linkid) is null
[Break on this error] document.getElementById
(linkid).style.background="#ffff00";

I know I'm doing something wrong (obviously :/) but I'm lost...

Thanks for your help.

-- 
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.

Reply via email to