I'm no jQuery expert, but first I notice you have two (document).ready functions. Can you do that?
Next, I see you're using a "fancybox" with a fade transition. If a google map is opened in a div with zero size, it won't work. Could that transition be part of the problem? As a test, you could try opening a separate window (try target='_blank' in your <a> tag without the jQuery override). (That might not be a long term solution; you might be using jQuery to avoid pop-up blockers.) Sorry I can't be more definite. - Jeff On Jun 7, 6:38 am, Andy Newby <[email protected]> wrote: > Hi, > > This has been driving me up the wall! :( > > http://www.chambresdhotesfrancedev.com/cgi-bin/hotels/page.cgi?g=Europe > > On that page, you see a "Locate on Map" link, which should open up a > FancyBox IFRAME windowm which opens a URL like so: > > http://www.chambresdhotesfrancedev.com/cgi-bin/hotels/page.cgi?p=goog... > > The map works fine on the last URL I posted - but NOT when you click ont he > "Locate on Map". > > I added a sample alert() into the initizalize() code, yet even that doesn't > print! > > I even tried doing it via the onload function in jQuery (in case it was a > problem that the JS library wasn't loaded) ... and that at least > > parent.$(document).ready(function(){ > initialize(); > }); > > ..and that does a bit more, but I get this error then: > > Error: google.maps.LatLng is not a constructor > Source > File:http://www.chambresdhotesfrancedev.com/cgi-bin/hotels/page.cgi?g=Europe > Line: 6 > > I'm at my witts end with this - just can't see why it won't work :/ > > Anyone got any suggestions? > > TIA! > > Andy -- 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.
