Quantcast
Channel: Mendix Forum Questions
Viewing all articles
Browse latest Browse all 82411

Can't scroll with Javascript

$
0
0

Hey all,

We have a page setup with a 4 step wizard; each step acts like its own page but everything is all on one page. When the user goes to the next step, the page doesn't refresh, so the scroll stays where they were when they clicked "continue" near the bottom. I have tried using the "ScrollToAnchor" widget, but the events offered don't really work for "scroll to the top when the next step is displayed", and any custom Javascript that I have written for this in an "HTMLSnippet" widget seems to execute, but when I used click events it appears that they do not get applied to the Mendix buttons. I even went so far as to create my own buttons in an "HTMLSnippet" widget, but my click events wouldn't fire.

 

Is there a way to scroll to the top of the page when a user clicks a Mendix button?


Viewing all articles
Browse latest Browse all 82411

Trending Articles