Hello,
I've been looking at integrating parts of my site with google maps api. I've found a class online here
I've got it working fine, it was just what i was looking for. However there's one part of it that i can't get my head around. I'm using code like this which will allow users to get direction from/to a point. Again this works fine, but i've been trying to mod the code so the directions appear in a new window, but i just can't figure it out!
When clicking get directions the page reloads and i can put a link in that calls a javascript function that will open the directions in a new window, but i can't get it to do it automatically. I've tried putting the an onload call to the function in the body tag and putting the call to the function in the follow if statement, but it seems the div the directions are returned in doesn't show as not empty until the page has fully loaded. It has been driving me mad! Any help or a point in the right direction would be greatly appreciated.
Thanks, pb1uk
<?php if($ADDRESS != ""){?>
call / function here
<?php } ?>