That was the trick! When i changed the JQuery to getElementById it worked. Thank you all for helping me, i don´t think i ever would have figured that out.
On 13 Apr, 01:38, William <[email protected]> wrote: > On Apr 12, 4:52 pm, Macke <[email protected]> wrote: > > > Hello William! > > > I tried to change the code but i still get the same message. I have > > used the same code on a ordinary .php file that has nothing to do with > > Drupal and then it works. > > If i try running the JQuery $('#map_canvas') after the page is loaded > > nothing gets selected > > $('#map_canvas') is a JQuery object, and $('#map_canvas')[0] is the > first DOM element matched by the selector (the map_canvas div) > > you are combining 3 different technologies: Google Maps, JQuery and > Drupal, so maybe try an example with just Google Maps and Drupal > without any JQuery. -- 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.
