WordPress.org

Ready to get started?Download WordPress

Forums

SimpleMap Store Locator
Highslide and SimpleMap (1 post)

  1. weslebsack
    Member
    Posted 1 year ago #

    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/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.