Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

JavaScript Call - Google Maps

  • 03-09-2012 2:44pm
    #1
    Registered Users, Registered Users 2 Posts: 8,004 ✭✭✭


    Hi Folks,

    Probably a dead simple question but I can't seem to get it. I never really use JavaScript but I have to in this case. I'm following this tutorial (http://tips4php.net/2010/10/use-php-mysql-and-google-map-api-v3-for-displaying-data-on-map/) I have cut it into another piece I'm developing. Works great and I have GeoCoding working perfectly, however this line is annoying me:

    <body onload="initMap()" style="margin:0px; border:0px; padding:0px;">

    Is there anyway I can call initMap() in a different part of the page? Or failing that, call it 'onLoad' but have to display else where in the HTML doc?

    Many Thanks.


Comments

Advertisement