Forum Moderators: open

Message Too Old, No Replies

Is there a way to use javascript history to refresh the previous page

Could do with a little help on this one?

         

tantalus

9:12 pm on Nov 21, 2003 (gmt 0)

10+ Year Member



It'd be really appreciated if anyone could help me out here.

Essentially I'd like to use javascript:history.back() to take the user back to the page they were viewing previously and update the contents of the page at the same time.

Is this possible?

Thanx in advance for any help.

DrDoc

9:37 pm on Nov 21, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I don't think it's possible to take the user back to the previous page AND refresh it.

tantalus

10:08 pm on Nov 21, 2003 (gmt 0)

10+ Year Member



Thanks...

...Damn! Back to the drawing board, I have admit it was a quick fix anyway.

...unless there are any other sugestions? <whimper/>

DrDoc

10:18 pm on Nov 21, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



And you can't take them "forward" to the previous page? meaning... do you know which page was the previous one?

tantalus

10:26 pm on Nov 21, 2003 (gmt 0)

10+ Year Member



Thats the problem anyone of 26+

DrDoc

10:42 pm on Nov 21, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Static or dynamic pages?
Can you pass a referer in the query string to this page?

tantalus

11:09 pm on Nov 21, 2003 (gmt 0)

10+ Year Member



Dynamic.

However...Page A selects data according to a catergory and loops through to display each record within a form with an add to cart button.

With each product appearing in up to three cats i can't see how to pass a unique (to page) referer in the query string.

... if that makes sense

tantalus

11:39 pm on Nov 21, 2003 (gmt 0)

10+ Year Member



oops got it.

Working too many hours.

Thanx