Welcome to WebmasterWorld Guest from 35.175.191.168

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?

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

Full Member

10+ Year Member

joined:June 15, 2003
posts:212
votes: 0


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.

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

Senior Member

WebmasterWorld Senior Member drdoc is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 15, 2002
posts:6807
votes: 0


I don't think it's possible to take the user back to the previous page AND refresh it.
10:08 pm on Nov 21, 2003 (gmt 0)

Full Member

10+ Year Member

joined:June 15, 2003
posts:212
votes: 0


Thanks...

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

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

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

Senior Member

WebmasterWorld Senior Member drdoc is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 15, 2002
posts:6807
votes: 0


And you can't take them "forward" to the previous page? meaning... do you know which page was the previous one?
10:26 pm on Nov 21, 2003 (gmt 0)

Full Member

10+ Year Member

joined:June 15, 2003
posts:212
votes: 0


Thats the problem anyone of 26+
10:42 pm on Nov 21, 2003 (gmt 0)

Senior Member

WebmasterWorld Senior Member drdoc is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Mar 15, 2002
posts:6807
votes: 0


Static or dynamic pages?
Can you pass a referer in the query string to this page?
11:09 pm on Nov 21, 2003 (gmt 0)

Full Member

10+ Year Member

joined:June 15, 2003
posts:212
votes: 0


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

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

Full Member

10+ Year Member

joined:June 15, 2003
posts:212
votes: 0


oops got it.

Working too many hours.

Thanx