Thanks for the tip, Ariel.. I'll give that try!

Rick


-----Original Message-----
From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Ariel Jakobovits
Sent: Sunday, April 22, 2007 8:18 AM
To: jquery-en@googlegroups.com
Subject: [jQuery] Re: Best way to determine if a user has Javascript
enabled?


how about this:

WHEN THE USER FIRST LOGS IN:
--------------------------------
<cfset Session.isJSEnabled = 'no'> // assume false for now


JAVASCRIPT ON PAGE:
-----------------------------------

var myUrl = 'http://myhost.com/someCFMfile.cfm'; // some URL pointing to the
page as defined below

var ajaxSettings = {
            type: 'GET',
            url: myUrl ,
            dataType: "html",
           data: {isJSenabled: 'yes'}
        };
        
jQuery(function () {
    jQuery.ajax(ajaxSettings);
});



FILE ON SERVER (Cold Fusion example):

-----------------------------------
<cfset Session.isJSEnabled = URL.isJSEnabled> // now it is YES and you can
use that later in generating pages


Basically, you fire off a message to the server saying that yes JS is
enabled. Update the session, and use that from then on in your code.








Reply via email to