On Mar 11, 4:49 pm, Carmelo <[email protected]> wrote: > I'm close to cry...
Don't do that. You just need to make sure that your code is run through in the right order, so that gdir exists before you attempt to add a listener, for example; and that objects which need to be shared between functions are global. And, don't accidentally redefine global variables as local by using "var" within functions. You're using a function "load()", which is run only when the page is loaded and the body onload event is fired, so that is run *last*. Make sure that everything which that function needs is set up in the right order, and everything which is assigned within that function isn't accessed before the function runs. If necessary, print out a listing of your page and walk through the code with a pencil. There's no shame in doing that. Andrew --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
