Feedback on: irt.org FAQ Knowledge Base Q921
Worth:
Not worth reading
Comments:
I believe there's an error in your code. It's location.replace('url'), not location.href.replace('url')
Worth:
Not worth reading
Comments:
I don't see how this is supposed to solve the redirect problem. The user will still get shifted to a site they AREN'T expecting. What I believe this user (and myself) are looking for is a way to use automatic redirection to channel users into the version of our sites that suits them AND allow them to use the back button to get tot he site they were at previous to either clicking a link to come to our site out typing in the URL. The problem here is a simple redirect (even the "solution") still causes a "blink" and automatic redirect, which we want it to do ONLY if the user ISN'T using the BACK button on the browser. I.E. if I'm at page A, lick a link to go to page B, which does browser detection and redirects to either page C or D, I want a user action of clicking the Back Button on the browser to (if possible) take them back to page A or (at least) stall out at page B instead of redirecting again to page C or D (that's the blink I was mentioning) or, as the "solution" suggests, page X based on whether its a new enough browser to accept images?! Right now, I'm working through this problem and trying to determine if page B can also check the document history to see if the user has just come from page C or D and, is so, go to page A... this would all be a hell of a lot easier if the document.referrer object also cataloged pages that had been exited with the BACK button. urgh!
Worth:
Very worth reading
Length:
Just right
Technical:
Just right
Comments:
Please disregard my previous e-mail. I misunderstood what the replace function did. Now, though, I have another question. The replace function can access and overwrite history data, so, can I use script to do this directly? In essence, can I "see" everywhere a user has been with their browser since they last cleared the history? Also, is their a way to simulate replace() for 1.0 Javascript level browsers? (I figure this ties in directly to my previous questions about accessing/overwriting the history). This was a big help. Thanks!