Re: Javascript detection , working version

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

 




Curt Zirzow-2 wrote:
> 
> On 1/1/07, Jürgen Wind <jwind@xxxxxx> wrote:
>>
>> well,
>> no cute css, but (hopefully) working - here is my quick & dirty version :
>>
>> http://149.222.235.16/public/
> 
> I dont understand the point.
> 
> Curt,
> 

sorry, i should have posted the original code (it's merely js/html/browser
related, not php)

http://149.222.235.16/public/index.html (20070102) :
----
<script>
<!--// index.html 20070102
D=new Date()
location.href='jstest.php?js=ok&t='+D.getTimezoneOffset()
//--></script>
<meta http-equiv='refresh' content='0;url=jstest.php?js=no'>
----

as i already said elsewhere in the thread: it was just a quick&dirty hack,
as tedds link didn't work. 
But Roman made a good point:
>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.

so here is what's new in http://149.222.235.16/public/index.php (20070110) :

----8<----
<noscript>
 <meta http-equiv='refresh' content='0;url=jstest110.php?js=no'>
 <?php /*** or put here your complete page for browsers with js disabled
***/ ?>
</noscript>
----
-- 
View this message in context: http://www.nabble.com/Javascript-detection-tf2905451.html#a8256985
Sent from the PHP - General mailing list archive at Nabble.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