This website uses cookies to personalize your experience. By using this website you agree to our cookie policy.

Not responding after 1 time clicking

Home Forums Product Support Forums Ajax Search Pro for WordPress Support Not responding after 1 time clicking

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #10582
    Cenk ArslanCenk Arslan
    Participant

    Hi there,

    The search plugin is not responding to 1 click. For example, if I click on a search suggestion the search tool is not responding, only after two clicks.

    Issue appears on: the mobile phone (Iphone 5C) and Windows (Chrome).
    I would like to avoid 2 clicks. It should show results after 1 click.

    I need to know the ip address of the staff so I can whitelist it.

    Best regards,

    Cenk

    #10593
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    Do you mean the suggested phrases? (under the search bar: http://i.imgur.com/ZZ5pYyM.png)
    If so, I’m not sure, it’s probably a 3rd party script conflicting, but I will have to see the issue first.

    My current IP is: 159.253.107.90
    It’s not a static IP and changes often, so let me know if you need some other information as well.

    #10594
    Cenk ArslanCenk Arslan
    Participant

    Hi Ernest,

    I have whitelisted the ip address. It’s the search suggestion link table..causes the user to double click a link instead of 1 click. Please see attached file.

    #10596
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

    #10597
    Cenk ArslanCenk Arslan
    Participant

    Hi Ernest,

    Thank you for the quick response. I have turned the keyboard behaviour off. Same results.

    I have tested it on the touchscreen Windows computer, maybe that’s reason why it didn’t work.

    How can I solve the mobile issue? An average user will not know about the double clicking behaviour when they are using a mobile device.

    Thank you,

    Cenk

    #10598
    Ernest MarcinkoErnest Marcinko
    Keymaster

    Hi!

    Unfortunately this is hard-coded, but I have a possible solution for you, without actually touching the plugin code.

    Try putting this code snippet into the functions.php file in your active theme directory:

    Make sure to have a back-up of everything first, in case something goes wrong.

    This code basically catches the click/touch event a prevents the default handling and continues to the page where it is supposed to go. I think I will re-evaluate this behavior for the upcoming release, it really seems unpleasant – I think I rather add an option to enable it in case, but disable it by default.

    I hope this helps you!

    #10599
    Cenk ArslanCenk Arslan
    Participant

    Thank you! Which part needs to be in the function.php?

    This one?
    ———————————
    add_action( ‘wp_footer’, ‘asp_prevent_double_tap’ );
    function asp_prevent_double_tap() {
    ?>
    <script>
    jQuery(function($){
    $(‘.results’).on(‘click touchend’, ‘.item’, function(e){
    e.preventDefault();
    e.stopImmediatePropagation();
    e.stopPropagation();
    window.location.href = $(‘a.asp_res_url’, this).attr(‘href’);
    });
    });
    </script>
    <?php

    #10600
    Cenk ArslanCenk Arslan
    Participant

    Awesome! It works now. Thank you very much!

    #10606
    Ernest MarcinkoErnest Marcinko
    Keymaster

    You cannot access this content.

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Not responding after 1 time clicking’ is closed to new replies.