This topic is locked
[SOLVED]

 Firefox - restore scroll position

8/16/2010 3:31:19 AM
PHPRunner General questions
E
electromotive author

Scenario: scroll down a page/list. click a (detail) link. After looking at the detail you can choose to either use the go "back to master" table link or use the "back" button on the browser.
If you use the browser back button, you'll go back to your former position down the list. But if you use the "back to master" link, the list page reverts back to the top, requiring you to search again down to where you were before. I see users frustrated by this.
This is fine for me, as I know the difference, but for your typical user it will not be so obvious the different behaviour. There are situations when its preferable to use the back to master link, and coming up with rules when to use the link and when to use the back button is awkward.
I think what I'd like to see is the "back to master" link work the same as the back button, and restore the position in the list.

A
ann 8/17/2010

Hi,
there is no easy way to select the position of the master table from the previous loading.

As workaround you can re-define the Back to master link in the following way (After record processed event on the Events tab):

$record["backtomasterlink_attrs"]="history.go(-1)";



Unfortunately in that case you'll need to uncheck Add new/Edit record/View record options on the Choose pages tab (leave only Inline Add/Edit)

E
electromotive author 8/18/2010



there is no easy way to select the position of the master table from the previous loading.


Hi Ann. No easy way... But is there any way at all to jump into a list??
Maybe this is not the question...
The browser back button already takes us back to the list at the correct position. Don't we just need the "back to master" (or another link/button beside it) to do the same thing as the browser back button? Or am I overlooking something?
Wouldn't this do that?

$record["backtomasterlink_attrs"]="history.go(-1)";


Why turn off the page add/edits?

A
ann 8/18/2010

Hi,
yes, Back to master link will be re-defined to work like "Back" button in the browser.

I.e. if you click Add/Edit/View buttons on the Child table list page, you will be redirected to the Add/Edit/View pages.