• Resolved emj

    (@emj)


    Since the removal of Ajax, when I enter the password incorrectly, it redirects me to the top of the page. I have to scroll all the way back down to my input field to see the message “password incorrect”.

    Any fix for this?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author patrickposner

    (@patrickposner)

    Hey emj,

    so sorry but an option like this requires Ajax to work.

    Let me try to sketch a basic solution to your problem in php (take a look on the gist):
    https://gist.github.com/patrickposner/1589bea6da60387c4310e1ef8e6ea55d

    Thread Starter emj

    (@emj)

    Thank you very much for taking time to reply @patrickposner

    I thought this might be the case, and since i needed to fix this yesterday, I implemented the following action on submit, so that on click, it jumped back down to the input box anchor:

    `jQuery(document).ready(function() {
    jQuery(“form”).attr(‘action’,jQuery(“form”).attr(‘action’)+ “#myinputboxid”);
    });`

    In case that helps anyone else.

    Thread Starter emj

    (@emj)

    Also, is the Ajax functionality something you plan to add back to the plugin at some point?

    It really is a great feature of the plugin, however understand it was causing errors.

    Thanks

    Plugin Author patrickposner

    (@patrickposner)

    Hey emj,

    good job!

    The Ajax functionality is on my roadmap, but It could be some part of a premium-version cause of the massive support for other plugins.

    The main problem are the many different ways other plugins add shortcodes. If we were in a perfect world, any shortcode would be returned in a single variable, so I can rely on and just use the integrated filters in passster to display the content, but you know.. ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Login redirects to top of page’ is closed to new replies.