Jump to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Sorting and Back Button

Featured Replies

Sorry if this is a dumb question,

Is it possible to sort the results on a single page one or multiple times (Using the [FMP-Link: s]), and then if the user clicks the back button on the browser, be returned to the original page that the query was initiated from instead of the previously sorted page?

To the user it looks like they are on the "same" page, and only sorting the contents, but we know that these are new pages that the WC is creating. I'm just wondering if there is some trick out there to tell the browser not to include the sorted pages in the "back" history.

Thanks.

u can use some javascript:

<a href="javascript:history.go(-1)">GO BACK</a>

and in the .back(X) X is where you would define how many steps back you want them to take.....so history.go(-2)...on so on.

give it try

.:.

  • Author

The method you provided would work if I had a go back link on the page, but I wanted it to work if they clicked the browsers back button.

You got me looking in the right direction though. I came across this little gem that works perfect!

<SCRIPT LANGUAGE="JavaScript"><!--

function go(url) {

if (document.images)

location.replace(url);

else

location.href = url;

}

//--></SCRIPT>

<A HREF="javascript:go('http://www.somewhere.com/apage.html')">Got to a page</A>

Now they can click the sort links, and the current history object is overwritten with the new sorted page. When they do click the Back button on the browser, they are returned to the orginal page, and not through the sorting iterations.

good I am glad you find the way...sorry but you were not that specific what kind of nav system you have so I gave you the quick & dirty resolution. smile.gif

"give a man a fish vs. teach a man to fish"

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.