[FX.php List] [off] Determining if client has Javascript enabled

Nick whatdoyouwant at gmail.com
Wed Sep 11 22:51:15 MDT 2013


You can write a unique cookie with JavaScript and look for the cookie in
php.  You would have to do some redirects to the JavaScript page that tries
to create the cookie if the cookie doesn't exist in php.  And then forward
to php after JavaScript makes cookie.

On Tuesday, September 10, 2013, Bob Patin wrote:

>
> On Sep 10, 2013, at 3:26 PM, Joel Shapiro <jsfmp at earthlink.net<javascript:_e({}, 'cvml', 'jsfmp at earthlink.net');>>
> wrote:
>
>
> I don't believe you'll find a way to use PHP to detect disabled
> JavaScript, since PHP is server-side and JavaScript is client-side* -- so
> the PHP is complete before the page gets to the client/browser.
>
> I think you're doing it basically right by having the default pageload be
> for non-JS clients, and then have JS pull in your other content.  And you
> might try to have jQuery *quickly* hide/remove the non-JS message, even if
> the actual content may take a bit longer to load.
>
>
> The first thing that I do is to load the default page content, but maybe
> I'll do a .hide() first and see if that tucks it away more neatly.
>
> Thanks,
>
> BP
>
>
> Bob Patin
> Longterm Solutions LLC
> bob at longtermsolutions.com <javascript:_e({}, 'cvml',
> 'bob at longtermsolutions.com');>
> 615-333-6858
> http://www.longtermsolutions.com
> FileMaker 9, 10, 11& 12 Certified Developer
> Member of FileMaker Business Alliance and FileMaker TechNet
> --
> Twitter: bobpatin
> AIM: longterm1954
> iChat: bobpatin
> --
> Expert FileMaker Consulting
> FileMaker Hosting for all versions of FileMaker
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.iviking.org/pipermail/fx.php_list/attachments/20130911/7d5a111a/attachment.html


More information about the FX.php_List mailing list