> 'map' isn't defined until after initial() is run.
> initial() doesn't run until page load is complete (<body onload=...)
> When does code in your test.js get executed?  Hint: when you tell it
> to run, probably long before page load is complete.
>
> You could put that code in your initial() as well.
>
> cheers, Ross K

I konw your mean ,but I want to write some functions in js file.It
will use allListener( );what should I do?
I tried to add <script type="text/javascript" src="./test.js"></
script> behind the<script>function initial(){ }</script> But that
cause an main.js error
--~--~---------~--~----~------------~-------~--~----~
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