On Jul 2, 12:11 pm, Adriano Ellero <[email protected]> wrote:
> yes i did that. ok i write all the code entirely in order to avoid
> misunderstanding.
> first of all, thanks a lot for your support...

1. We ask for a link for all sorts of reasons, given in the Posting
Guidelines and linked pages.
2. My answer is changed only slightly:

Code is processed in-line, so the processor reaches your call of "test
()" before the page has finished loading, and runs it then. "initialize
()" is only run when the page has completed loading, so "map" is
defined after you have attempted to use it in "test()".

Remove your call to test() from the bottom of the page and use
  <body onload="initialize();test()"> instead, if you want test() run
when the page loads.

Or, if you only want to run test when you click the page, just remove
the script from the bottom of the page.

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

Reply via email to