Re: Javascript detection , working version
| From: | tedd | Date: | Tue, 02 Jan 2007 20:24:30 +0000 |
| Subject: | Re: Javascript detection , working version | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-246374@lists.php.net to get a copy of this message | ||
At 2:06 PM -0500 1/2/07, Robert Cummings wrote:
On Tue, 2007-01-02 at 10:06 -0800, Jürgen Wind wrote:Rob: That's a good point -- even if a delay was added it's not certain that it wouldn't experience a race issue. And the longer the delay, the more problems you have with the user experience. Perhaps a token scheme, like prohibiting duplicate from submissions, might work. tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.comtedd, plz no personal mail, i like better to discuss things in the forum and thus hear other meanings and experiences.Your solution was very simple and worked very well.tx, i always try to keep things logical and as simple as possible ;) this is just a quick example to show how to bring info gathered by js back to the php application (and possibly store it in a session for later use). Using the query string is just one way and can also be used in combination with loading some css.php or some such. Setting a cookie may be another option. Happy coding ;)Out of curiosity, can you guarantee the Javascript redirect will always occur before the meta redirect when Javascript is enabled? Otherwise you have a race condition. Cheers, Rob.