• Resolved wcreate

    (@wcreate)


    Hi

    If I perform a search and I push the search button, you can see it does the search 2 times. I think it’s because of an onmouseout event that is called if you leave the input-field.

    Is it possible to disable the onmouseout-event? Or is this because of something else?
    Many thanks in advance!

    Kind Regards
    Wim

    • This topic was modified 8 years, 1 month ago by wcreate.

    The page I need help with: [log in to see the link]

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Contributor Richard Archambault

    (@richardmtl)

    Hi!

    That’s odd. Does the same thing happen if you switch to another theme temporarily? For example, try the default Twenty Sixteen theme to see. Let me know how it goes!

    Thread Starter wcreate

    (@wcreate)

    Hello Ricard

    Many thanks for your reply.

    Yes it does the same thing. Please keep in mind that I had to manually add the search button in the job-filters.php (through a child theme) because the search button isn’t in the job-filters.php by default.

    <div class="search_submit">
    <input type="submit" name="submit" value="Search">
    </div>

    Kind Regards
    Wim

    Plugin Contributor Richard Archambault

    (@richardmtl)

    Can you post the full content of job-filters.php on https://pastebin.com/ or somewhere similar, and then give me the link to it? I presume there won’t be any private or proprietary information in the file but if there is, make sure to remove it before posting it. Thanks!

    Thread Starter wcreate

    (@wcreate)

    Hi Richard

    Here you are: https://pastebin.com/tT1rx8M9

    Many thanks for looking further into it.

    Kind Regards
    Wim

    Plugin Contributor Richard Archambault

    (@richardmtl)

    Hi! Thanks for the file. I’ve passed this along to the developers because I don’t know what’s happening. For my own internal reference, it’s issue #2075. I’ll get back to you when I hear from them!

    Plugin Contributor Richard Archambault

    (@richardmtl)

    Hi! It looks like the problem is the Submit button you added:

    <div class="search_submit">
         <input type="submit" name="submit" value="Search">
    </div>

    WPJM will search automatically via javascript when people enter terms, without the need for a Search button. Explanation from the developer:

    WPJM’s filter form tries to be Javascript based. It listens for the return key or for field changes and then automatically submits the form. It can prevent traditional (page reload) form submission on Enter/Return using the build-in template because there is no Submit button. When a person hits Enter/Return when there is the submit button (from within a text field), JS fires the update and then the browser submits the form in the traditional way. If they just click Submit (without having changed the fields), you’ll see it just submit the form traditionally (without using JS).

    So, our suggestion is to remove the button.

    Thread Starter wcreate

    (@wcreate)

    Thanks for the reply Richard.

    Just to be sure. It isn’t possible to remove the onchange-event filter?

    Kind regards
    Wim

    Plugin Contributor Richard Archambault

    (@richardmtl)

    Hi! You’d have to edit the plugin files / javascript files for that. There’s no filter or anything that allows you to remove it, no.

Viewing 8 replies - 1 through 8 (of 8 total)

The topic ‘Problem with search button’ is closed to new replies.