On Jul 14, 5:36 pm, ERG Web <[email protected]> wrote:
> Sorry thought I had posted the URL:
>
> http://pc146-56.erg.kcl.ac.uk/london/asp/default.asp
It looks like the problem is that ChosenIndex is not being set
correctly at line 657 of default.asp.
original_site is undefined, which does not equal "", so the next block
is executed. ChosenIndex should be set to -1 and that line of code
isn't being executed. Then the code attempts to do
GEvent.trigger(gmarkers[ChosenIndex],"click");
which is what throws the error. Even if ChosenIndex is set correctly
(which can be done explicitly using Firebug), gmarkers[-1] doesn't
exist and the same error is thrown.
If I explicitly set original_site to "" in order that that block isn't
executed, it still tries to trigger that event.
I *suspect* that there are problems with braces -- that is, you have
the right number of { and } because there are no syntax errors
flagged, but they are not paired correctly. I'll see if I can have
another look later if someone else doesn't first.
--
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.