Well I just debugged the page using both Venkman and Firebug, and this
is what's happening:
I have a file called application.js where the GMaps script is defined.
It goes:
function initialize() {
if (GBrowserIsCompatible() && typeof gyms != 'undefined') {
// CODE
}
}
window.onload=initialize;
window.onunload=GUnload;
When I load the page at the URL previously cited, the execution jumps
from the first line ("function initialize()") to straight outside the
function (to "window.onload=initialize;"). Then it continues on to the
"window.onunload=GUnload;" line at which point it complains that
GUnload is undefined.
When I load the page without the debugger it also complains about
"GBrowserIsCompatible()" not being initialized.
I'm new to JS debugging so those are the things I don't understand. In
particular, why when I have a breakpoint at "function initialize()" do
both STEP INTO and STEP OVER take me outside the function's scope. Is
there anything wrong with the function declaration?
Thanks!
@Mike Williams: yes, it was me who wrote that.
/ Vahagn
On Jan 15, 10:18 am, Rossko <[email protected]> wrote:
> > gyms that then are supposed to be plotted on the Map - however that is
> > not happening for some reason...
>
> It might have something to do with the javascript errors.
> Why not get a debugger and have a look into those in the first
> instance - you can always ask if you don't understand the errors.
>
> cheers, Ross K
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---