The Lodge is members-only design/dev videos and Office Hours.

Next Office Hours Session: "Programming Fundamentals" Dec 02 - 2:00 PM Eastern

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:


    And do the same via jquery?

    Here is my onload attempt:

    // Your code here

    Not sure about onunload though. Would I use the unload function ? 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.

    # February 23, 2009 at 7:54 pm

    Try using this jQuery plugin 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.

There's a whole bunch of content on CSS-Tricks.

Search for Stuff   •   Browse the Archives

Get the Newsletter ... or get the RSS feed