/    Sign up×
Community /Pin to ProfileBookmark

From a back button on browser, going to loopslider inner page from it came

Hi All,
I have a loop slider of 4 pages. If I am on page 3 and click on any product on page 3. It goes to that product. But when I want to return back it starts the slider from start rather then page 3.

So i would like to know, how to go back to the preview page where the user was by the back button on browser. The loopslider starts from start all the time.

Any ideas , please help!!!

Regards,

Meenakshi.

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@flx666Jul 05.2012 — Did you find a solution to the slider problem?
Copy linkTweet thisAlerts:
@rtretheweyJul 05.2012 — Without seeing the code, it's impossible to be specific. In general, the key is to retain the page number of the preview page when the user clicks on the link to the product page. This can be done in several different ways, but it all depends on how the underlying software works.

I'd probably recommend using a cookie in this situation because it's likely to be the easiest to integrate into some existing JavaScript. The preview page would always check for the presence of the last-page-number-seen cookie to determine which page to display. If none is found, page 1 is displayed by default. If the cookie is found, then the appropriate page number is displayed. Then the cookie is updated to indicate the last page visited by the user.
×

Success!

Help @meenakshi1979 spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.8,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...