478
Views
4
Comments
Solved
go to a certain part of a page from an action?
Question

I seem to remember something like "anchors" being in one of the older revisions where you could tell the page to go to a certain part of the page.  What I need to do is from an action (ajax submit) go to a certain place on the page when the action is called.

2017-08-09 12-12-29
Jason Herrington
Solution

To do this we ended up using the Richwidgets\Input_SetFocus widget.  It doesn't give us the ability to dynamically set the focus but it works for initial load.

2020-02-28 09-46-54
Eduardo Jauch

Hi Jason,

You could include in the screen action a RunJavaScript action to click on a hidden link in the format "#Id", where the id is the Id of the element to where you want to navigate (a div, etc).

But maybe there is an easy way (and I would like to know it).

Cheers,

Eduardo Jauch

2020-02-28 09-46-54
Eduardo Jauch

Another possibility maybe would be to add a navigate with a external url and the destination set to the #id mentioned before.

Cheers

Eduardo Jauch

2017-08-09 12-12-29
Jason Herrington
Solution

To do this we ended up using the Richwidgets\Input_SetFocus widget.  It doesn't give us the ability to dynamically set the focus but it works for initial load.

2020-02-28 09-46-54
Eduardo Jauch

Hi Jason,

Nice to hear you found a solution. :)
I wouldn't have think of solving this issue using the Input_SetFocus widget.

One more option to the list.
Thank you for sharing it.

Cheers,
Eduardo Jauch

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.