pe********************@gmail.com said the following on 4/6/2006 4:34 PM:
Please quote what you are replying to.
If you want to post a followup via groups.google.com, don't use the
"Reply" link at the bottom of the article. Click on "show options" at
the top of the article, then click on the "Reply" at the bottom of the
article headers.
<URL:
http://www.safalra.com/special/googlegroupsreply/ >
One quick recommendation:
Just have some kind of counter using cookies, and once the cookie count
has reached 5 (as 5*2 is 10), then have the JavaScript redirect the
page using 'location.href'. Cookie access and deletion is possible in
JavaScript, although I have not mastered it. In your secondary page
(the one being redirected to), you could have a simple JavaScript that
deletes the previous cookie so that no interference will happen.
And if cookies are disabled but JS is enabled?
Another possibility for refreshing after 2 seconds is just to use a
meta tag for refreshing.
IE6 allows the explicit disabling of META refreshes.
Online, there are many sites that show you how to use the meta refresh
tag, so use those as reference in the case that that will work.
Don't, as most "on-line tutorials" are junk and not worth reading.
The cookie option would be added as a script to this page so that you
would still have that 10 second redirect.
The solution that Lee gave doesn't require cookies (doesn't even use
them in fact).
Read the current URL.
Get the parameter.
If its 10, redirect elsewhere
Add 2 to parameter.
set location.href to the location.href with the new counter added.
--
Randy
comp.lang.javascript FAQ -
http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices -
http://www.JavascriptToolbox.com/bestpractices/