Jump to content

Basic back button


matthewlesh

Recommended Posts

Hello everyone out there....

 

I am currently re develping an ajax system i wrote a while back a small downloads system, the basics of it is that it just goes to the next page....

 

But people have complained that they can't press the back button on there brower.. so i added...

 

window.location.hash = 'file-'+num;

 

Works great but it doesn't allow the user to go back.. i have started looking up stuff online about how to do this but it seems very complicated and a complete re write of the script.. so i was wondering if any one out there knew a simple way to quickly make the back button work on the system...

 

I am planing to do the bookmarking of those links with PHP to make it easiest..

 

In advance thank you, thank you, thank you for any help you can give...

 

 

Link to comment
Share on other sites

 

if your javascript or php is set up to create/check for the cookie and finds that a specific cookie exist; you set up a redirect based on a specific cookie's name or content. that way; as soon as the page loads or before the page loads (using server side - like php); they will be sent to the specific pagination (I assume that is what your doing with this) your ajax script sent them to; when they click the "next" button or whatever they did to trigger the ajax function.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.