well, i did not solve the problem but at least i understand the reason at
least.
i see now the light after the tunnel.

thanks a lot and i hope to solve it...

probably all was working on the other server was because of luck. the time
to create the page was faster and the asp code was running when the page is
already loaded.

so the new server needs more time and the code is launched as you said
probably when the page is not yet activated.




2009/7/2 Andrew Leach <[email protected]>

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


-- 
Adriano Ellero
[email protected]

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