Thanks for your answers all of you, I'm going to experiment a bit now and try to get back with a report. Tried to declare the map variable at the beginning of the script but it doesn't seem to solve the opera problem. Beginning to wonder if there's something not right with my Opera, if all of you don't have any problems with it...
/ed On 21 Juni, 14:17, Pil <[email protected]> wrote: > map should be a global variable. So it should be declared globally at > the beginning of your script (outside of any function): > > var map; // declared globally as 'undefined' > > Then you can use it inside of any other function like you do in the > function initialize() > > map = new google.maps.Map(document.getElementById('map_canvas'), > > If you don't do that the browser has to parse the whole available > script code to find a variable by that name before a global variable > will be created. > > On Jun 21, 1:31 pm, Edward <[email protected]> wrote: > > > > > > > > > I'll look into validating immediately. Could you please explain the > > global variable thing a bit further or give an example? Not sure where > > to start really. > > Thank you for taking the time! > > > /ws > > > On 21 Juni, 13:22, Pil <[email protected]> wrote: > > > > Try to use valid HTML > > > >http://validator.w3.org/check?uri=http%3A%2F%2Fwww.thetube.se%2Fhem%2... > > > > Try to declare a global variable like map accurately outside of any > > > function. > > > > On Jun 20, 5:22 pm, Edward <[email protected]> wrote: > > > > > This map is visible in all browsers except Opera: > > > > >http://www.thetube.se/hem/replokaler/ > > > > > Having a hard time figuring out why, I'd really appreciate some help > > > > on this! > > > > > Thanks, > > > > Edward -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" 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-js-api-v3?hl=en.
