Guys, Thnx for the replies.
But my collegue already solved the problem. I've put the var map = null; and var geocoder = null; out of the code and put them on the client side of my user-control. which solved the problem. Apperently firefox resets the variables when i wanted to access them. Thnx again. Koen On Apr 22, 3:30 pm, "Neil.Young" <[email protected]> wrote: > Andrew Leach schrieb: > > > > > On Apr 22, 10:18 am, koengils <[email protected]> wrote: > > >> Hi, > > >> I've got the following problem. > >> I want to use the geocoding and polygon-drawing abilities of google > >> maps. > >> But i use web-user-controls so I can't put the javascript on the page > >> it self. > >> I use RegisterStartupScript to get the java to the clientside. > > >> This works in IE (6) but it won"t work in Firefox. > >> In FF I see the google maps control but the geocoding didn't take > >> place, so the map is all gray. > >> Can anybody tell me what I need to change to get it working in FF? > > > As you're aware, everything in the API happens client-side. You can > > also see what the Groups interface has done to your code listing. > > Please follow the posting guidelines and supply a link so we can see > > it in action (or rather, see how it fails :-) > > What he attempts to do server side is to "implant" javascript to the > page, the client browser sees, so he seems to be aware of the fact, that > all the API stuff works client-side :) > To koengils: In order to get help it would be a better idea to publish > the HTML code, rendered server side on a publicly available web site. > Just right click and save the source code of your page on a server for > us. It could be simply the fact, that the map object isn't available > yet, while your JS code is executed... Hard to say from the plain server > side source. > > > > - Hide quoted text - > > - Show quoted text -- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
