Re: Javascript detection , working version

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



At 2:06 PM -0500 1/2/07, Robert Cummings wrote:
On Tue, 2007-01-02 at 10:06 -0800, Jürgen Wind wrote:
 tedd, 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.

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.com

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux