WordPress.org

Support

Support » Plugins and Hacks » Highslide and SimpleMap

Highslide and SimpleMap

  • Hi Everyone,
    I’m trying to integrate Highslide with Simplemap, so that when a user clicks a permalink, its page pops up in an AJAX window. The code I’m editing is:

    if (locationData.permalink != null && locationData.permalink != '') {
    					html += '<a href="' + locationData.permalink + '">';
    				}

    What I’d like to do is add an onClick attribute, and call the highslide function. The problem is, it breaks the loop and doesn’t load any locations from the map:

    if (locationData.permalink != null && locationData.permalink != '') {
    					html += '<a href="' + locationData.permalink + '" onclick="return hs.htmlExpand(this, { outlineType: 'rounded-white', wrapperClassName: 'draggable-header', objectType: 'ajax' } )">';
    				}

    If I remove the apostrophes, it just links me through to the URL:

    if (locationData.permalink != null && locationData.permalink != '') {
    					html += '<a href="' + locationData.permalink + '" onclick="return hs.htmlExpand(this, { outlineType: rounded-white, wrapperClassName: draggable-header, objectType: ajax } )">';
    				}

    And lastly, I’ve tried using the unobtrusive method (rel=”highslide”) but that doesn’t work.

    Does anybody have an idea of how I can get this to work?

    Thanks!

    http://wordpress.org/extend/plugins/simplemap/

  • The topic ‘Highslide and SimpleMap’ is closed to new replies.