Grow your CSS skills. Land your dream job.

jquery and google maps

  • # February 17, 2009 at 2:37 pm

    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.

    uba
    # February 23, 2009 at 7:54 pm

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

    # February 24, 2009 at 9:16 pm

    Well, I’ll be damned.

    Thanks, that’s a little easier.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".