WordPress.org

Ready to get started?Download WordPress

Forums

WP Super Heatmap
Checkbox doesnt (un)check (6 posts)

  1. taymax
    Member
    Posted 2 years ago #

    When i disable the plugin my check boxes starts working. I think i also had problems with input buttons where i was unable to submit forms. Please fix.

    http://wordpress.org/extend/plugins/wp-super-heatmap/

  2. Naz
    Member
    Posted 2 years ago #

    I was wondering why my check boxes and radio buttons stopped working. When I disabled this plugin they started to work again.

  3. mikevan
    Member
    Posted 2 years ago #

    Ditto. All forms on the site - even basic WP Search - stopped functioning with the WP Super Heatmap plugin enabled - regardless of whether it was recording or not. Disable it and all start working again. And it didn't make a difference whether it was "recording" or not.

  4. taymax
    Member
    Posted 2 years ago #

    Hi Guys, ok the problem is in file wp_super_heatmap_js.js in "js" folder.

    change : event.preventDefault(); on line 7

    into
    $("a").click(function(ev) {
    ev.preventDefault();
    });

    event.preventDefault(); prevents click actions on ALL the element. by adding this function you can specify "a" element (hyperlink) to stop from its default action which allows for recording of the click on links; this action is later re-assigned... so just add this function and you should be ook.

    i have also found another issue with # sign which make the page to go to top whenever my "anythingSlider" slides numbers are clicked on.

    Tip : if you have a fast server reduce 1000 's at the bottom of the page which delays the clicks on the links allowing for the recording of the click

    Im not responsible for any problems caused. but i can tell you i use the plugin on pretty large sites and it seems ok atm =)

  5. taymax
    Member
    Posted 2 years ago #

    Temp solution for # problems (DOESNT RECORD # CLICKS!!!) :
    Replace this :
    window.setTimeout(function(){document.location.href=url;}, 1000); // timeout and waiting until effect is complete

    With :

    if (jQuery(event.target).closest('a').attr('href') != '#') {
    window.setTimeout(function(){document.location.href=url;}, 1000); // timeout and waiting until effect is complete
    }

    This if statement stop the code from running where ever # hash is found in href of the link "a" element. When using this clicks do not seem to get registered on the clicked #anchor... although a message is sent to the server... Im really tired atm. ill work on this later. I think the developer of the plugin is on holiday... =P

  6. forestis
    Member
    Posted 1 year ago #

    Same issue here, has anyone a fix for this issue ?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic