Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript jquery and google maps

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #24182

    I’m trying to incorporate a custom google map into my wordpress website and google gives me javascript embedded into the html.
    The function itself I can dump into my functions.js but does anyone know how I can avoid using this:

    Code:

    And do the same via jquery?

    Here is my onload attempt:

    Code:
    $(document).ready(function(load){
    // Your code here
    });

    Not sure about onunload though. Would I use the unload function http://docs.jquery.com/Events/unload#fn ? I’m not sure how to write it though and to check that it does execute the GUnload function on unload.

    Any help would be much appreciated.

    #54257
    uba
    Member

    Try using this jQuery plugin http://plugins.jquery.com/project/jmaps it should take care of the google maps for you.

    #54287

    Well, I’ll be damned.

    Thanks, that’s a little easier.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.