It worked - thank you. I'm kinda new to javascript, and it occured strange to me that functions are declared after being used in the code, but I've seen this in a few examples (even in maps API), so I thought that this is a proper routine.
Once again, thank you. On 13 Lip, 13:33, Andrew Leach <[email protected]> wrote: > On 13 July 2010 12:17, redvibes <[email protected]> wrote: > > > Unfortunately this function doesn't work in Firefox. Console displays > > an error message: createListener is not defined. Is there any known > > issue related to Firefox? > > >http://redvibes.pl/slovenia/index_pl.php?s=wyprawathere should be > > several markers on the map... > > Move your function createListener so that it's defined before it's > actually called. It needs to be defined in global scope, so *between* > these two lines would be a good place: > > <script type='text/javascript'> > function mapaStart() > > Internet Explorer parses all the Javascript before it calls anything, > so it will already have found the function. Firefox needs to have > encountered the function before it's called. -- 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.
