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

JavaScript Call - Google Maps

Options
  • 03-09-2012 3:44pm
    #1
    Registered Users 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