Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scroll to Top #28

Open
leapthemes opened this issue Aug 20, 2014 · 1 comment
Open

Scroll to Top #28

leapthemes opened this issue Aug 20, 2014 · 1 comment

Comments

@leapthemes
Copy link

My iFrames all use forms. When the form is submitted or any validation occurs with errors, the browser scrolls to the top of the page. If the user hits the submit button and there were errors, the user won't be aware because they are now at the top of the website.

I have tried:
$("#myIframeID").responsiveIframe({ scrollToTop: false });

But then the browser scrolls to the footer (where the iFrame is) on page load in Chrome and IE9.

I would appreciate any help. Thanks in advance.

@ChuckNorrison
Copy link

Thanks for the scrollToTop hint. I changed it in responsiveiframe.js. Now it dont scroll to top on resize window.

In your example i would make use of anchors on submit. submit makes a reload on page, this is not a failure from responsiveiframe i think

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants