Hi everyone I have been setting up my site to work with google maps. I have a find.php page which contains the maps, and i wish to link to this page from my sidebar (present on all pages). I use the code: <a href="find.php" onclick="find();return false;">find us</a> If i happen to be on the find.php page it works fine, but if i am on any other page, it redirects but does not display the map. Please, does anyone know why? Many thanks
My guess is that the find() JavaScript Function isn't getting executed when you are clicking from another page. Executing the find JavaScript Function at the botton of the find.php page might fix it. I hope that helps
Thanks for the reply marty, it does get called i think, because if i add an alert in, it displays. The url is "www.reapfuels.co.uk". If you click on the 'find me' link twice on the bottom right, youll see what i mean.
Hey Pingu, No problem. I started playing with your code locally and it looks like the callme function is trying to use Gmap2 Object before it's actually loaded into the browser. Very strange... Good luck, Marty