March 17th, 2002, 07:39 AM
this works perfectly.. BUT.. in some browsers i have to press refresh to have the changes made.
e.g. index.php says "hello guest"
after signing in
some browsers say "hello user"
some like ie5 say "hello guest" (if i refresh, then it says "hello user")
so is there anyway to goback to the previous page in history and not to use the cache?
it's electric baaaabbbbbbyyyyyy!!!
March 17th, 2002, 11:36 AM
If all you want is for the page to refresh itself every time it's loaded, just put:
.If, on the other hand you don't want the page to cache at all, do a search of the forums. There was a recent thread about preventing browser caching that should answer that question.
March 17th, 2002, 08:10 PM
Never heard of document.refresh(). You can force an unconditional HTTP GET by doing this:
...but you'd have to put in in every page - and every page would be refreshed, regardless of how the user got there. Need to keep it from looping endlessly as well. The history object is closely guarded, so, not much can be done with it client-side. You might be able to use document.referrer....
Last edited by mrrichardfeder; March 17th, 2002 at 08:53 PM.
March 18th, 2002, 08:16 PM
.refresh().... well.. I suppose if one specified it as a method of a custom object with the block document.location.reload(true); then it would work jut the way one would expect, wouldn't it!
That's what happens when you type without thinking.. it's the information ages answer to not thinking before you speak I suppose... sheesh.. yea yea... there's no .refresh() method! Sorry about that how-do-i, thanks mrrichardfeder!
September 9th, 2004, 08:42 AM
I realize this is a really old thread, but it came up in the results when I was searching to fix this problem. So going to go ahead and put the answer I found to work in case anyone else finds it since it was the information in this thread that lead me to the answer.
I had a similiar problem. I have a list of items, and in that list there is a "status" highlight that tells if that item needs attention or not(something needs fixed). So you click to edit the item, fix the item then resubmit. Problem is/was, the lists the person came from was not always the same place, so the history function was needed to get back to the list. Of course, without a refresh the status wasn't updated and that wasn't good.
Here's what I did:
This took the browser back 2 pages and refreshed it. I've only tried this in IE, as it's all we use at work. So no idea if it works with other browsers.
October 20th, 2004, 07:38 AM
Does anyone know how to get this script working in Mozilla/Firefox - it works perfectly in IE 6, but not in Firefox...
November 16th, 2004, 06:16 AM
yeah, doesn't work in Firefox 1.0 on linux, which is a real shame. it just reloads the existing frame.
Originally Posted by paliz
November 16th, 2004, 06:49 AM
just tried this in firefox http://www.webdevforums.com/textonly/t-4573
Originally Posted by speculatrix
but no joy either.
June 29th, 2009, 12:43 PM
Again, I know it's old, but it's still one of the first matches I get when I google this, and there doesn't seem to be any good solution here.
Anyway, the solution that was given before didn't even work in the newest version of Internet Explorer (IE 8), and it certainly didn't work in Firefox (which I primarily use). It's usually not good to use code that is highly browser-dependent anyway.
June 17th, 2013, 07:07 PM
This helped me.
window.location = document.referrer;
Don't know if it's cross-browser friendly :s