[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-26 Thread Nathan Young -X \(natyoung - Artizen at Cisco\)
Of Rick Faircloth Sent: Tuesday, April 24, 2007 8:18 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Best way to determine if a user has Javascript enabled? As much as I dislike the idea of having to develop two different sites or, sometimes, just different pages, it seems like

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-25 Thread Priest, James \(NIH/NIEHS\) [C]
-Original Message- From: Rick Faircloth [mailto:[EMAIL PROTECTED] However, if JS isn't working, the details for every row in the calendar will be showing and that's a no go. Perhaps there is a way to cause the calendar to default back to its original functionality with a

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-25 Thread Rick Faircloth
to determine if a user has Javascript enabled? -Original Message- From: Rick Faircloth [mailto:[EMAIL PROTECTED] However, if JS isn't working, the details for every row in the calendar will be showing and that's a no go. Perhaps there is a way to cause the calendar to default

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-25 Thread Priest, James \(NIH/NIEHS\) [C]
-Original Message- From: Rick Faircloth [mailto:[EMAIL PROTECTED] Wait, I see what you're saying... the same link would serve both JS and non-JS users. How would a link that would work for both situations be coded? Seems like you could have two different links: div

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-25 Thread Scott Sauyet
Rick Faircloth wrote: I think I may try the AJAX solution, partly because I just want to get more experience with AJAX and mostly because it seems to be the best solution. It's not that much harder client-side than the others. But there really is more work to do on the server... Wait, I

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-25 Thread Rick Faircloth
I'll give that a try... thanks, James. Rick -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Priest, James (NIH/NIEHS) [C] Sent: Wednesday, April 25, 2007 2:14 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Best way to determine

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-24 Thread Nathan Young -X \(natyoung - Artizen at Cisco\)
. ---Nathan -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] idea pages shouoglegroups.com] On Behalf Of Rey Bango Sent: Friday, April 20, 2007 7:35 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Best way to determine if a user has Javascript

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-24 Thread Rick Faircloth
To: jquery-en@googlegroups.com Subject: [jQuery] Re: Best way to determine if a user has Javascript enabled? Hi. There is another surefire solution to getting a site that works with JS and non-js usage, and that is to bifurcate the experience quite early on and send the two sets of users down very

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-22 Thread Ariel Jakobovits
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

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-22 Thread Rick Faircloth
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

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-22 Thread Josh Nathanson
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. I am thinking of forking my application in one area where I want to handle things very differently depending on if someone has javascript enabled, and

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-22 Thread Dan G. Switzer, II
Josh, I am thinking of forking my application in one area where I want to handle things very differently depending on if someone has javascript enabled, and this is the method I think would work best. The only possible downside would be if someone disables javascript in the middle of their

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-22 Thread Klaus Hartl
Dan G. Switzer, II schrieb: meta http-equiv=refresh content=2;url=page.htm?js=false script type=text/javascript self.location = page.htm?js=true; /script In this example if JS is enabled, the JS code would be executed redirecting the user to page w/a URL parameter indicating that JS was

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-22 Thread Klaus Hartl
Klaus Hartl schrieb: Dan G. Switzer, II schrieb: meta http-equiv=refresh content=2;url=page.htm?js=false script type=text/javascript self.location = page.htm?js=true; /script In this example if JS is enabled, the JS code would be executed redirecting the user to page w/a URL parameter

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-22 Thread Klaus Hartl
Andy Matthews schrieb: Simple way to do it might be to use javascript itself to do a forward or something like that. I've seen people set up a meta refresh of 5 seconds in the header, then use javascript to do a location.href as soon as the page loads. If they have js, they get redirected

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-21 Thread Felix Geisendörfer
Detecting if JavaScript is enabled is actually fairly straightforward. No need to make it so complicated. Well I think this thread is about how to detect if JS is enabled on the Server-side ; ). Your method of course is the way to go if all one needs is to display a msg to the user. -- Felix

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-21 Thread Dan G. Switzer, II
Detecting if JavaScript is enabled is actually fairly straightforward. No need to make it so complicated. Well I think this thread is about how to detect if JS is enabled on the Server-side ; ). Your method of course is the way to go if all one needs is to display a msg to the

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-21 Thread Rick Faircloth
:[EMAIL PROTECTED] On Behalf Of Dan G. Switzer, II Sent: Saturday, April 21, 2007 8:53 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Best way to determine if a user has Javascript enabled? Detecting if JavaScript is enabled is actually fairly straightforward. No need to make

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-21 Thread Rick Faircloth
: Best way to determine if a user has Javascript enabled? Brian, I would agree to some extent that it is not necessary to detect if JavaScript is disabled. However, there are an abundance of (I do hate saying this word) Web 2.0 sites in which it is impossible to use all the features unless

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-21 Thread Rick Faircloth
me what the problem is? Slowly losing my mind... Rick -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Giant Jam Sandwich Sent: Saturday, April 21, 2007 9:01 AM To: jQuery (English) Subject: [jQuery] Re: Best way to determine if a user has

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-21 Thread Rick Faircloth
) Subject: [jQuery] Re: Best way to determine if a user has Javascript enabled? Hi Felix, Rick's original question didn't specify server side... I only skimmed the messages thereafter, so that might have come out later in the thread... me being lazy on a Saturday :)

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Scott Sauyet
Rick Faircloth wrote: Is there a fool-proof way to determine if a user has Javascript enabled in their browser? From the server side? No. From the client? Just try it. Often, the trick is to make the site function reasonably even if JS is off. One ugly technique that I've used on

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Rob Desbois
From where? If javascript runs, they have it enabled - if it doesn't, they don't! Are you wanting to pass this information to your server? Something like the following should work for that: a id='js_detect' href='/foo.php'Load/a script type='text/javascript'!-- $(document).ready(function() {

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Andy Matthews
Simple way to do it might be to use javascript itself to do a forward or something like that. I've seen people set up a meta refresh of 5 seconds in the header, then use javascript to do a location.href as soon as the page loads. If they have js, they get redirected immediately to page A, if they

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Mike Alsup
Well said, Dan. On 4/20/07, Dan G. Switzer, II [EMAIL PROTECTED] wrote: As discussed on another mailing list, there's no real need to detect if JS is enabled. If you write unobtrusive JavaScript (which is what jQuery helps you to do) if the user has JS disabled, things will continue to work.

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Andy Matthews
way to determine if a user has Javascript enabled? Rick, Good morning, all... Is there a fool-proof way to determine if a user has Javascript enabled in their browser? As discussed on another mailing list, there's no real need to detect if JS is enabled. If you write unobtrusive JavaScript

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Rick Faircloth
=exitTemplate / /cfif -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dan G. Switzer, II Sent: Friday, April 20, 2007 9:16 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Best way to determine if a user has Javascript enabled? Rick, Good

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Rick Faircloth
@googlegroups.com Subject: [jQuery] Re: Best way to determine if a user has Javascript enabled? From where? If javascript runs, they have it enabled - if it doesn't, they don't! Are you wanting to pass this information to your server? Something like the following should work for that: a id

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Klaus Hartl
Rick Faircloth schrieb: If JS is enabled, then I can use Ajax to send them back, if not, then the page will have to be refreshed. If you use JavaScript in the sense of Progressive Enhancement, this should be no problem at all. First build your form working in the traditional way,

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Scott Sauyet
Rick Faircloth wrote: I'm trying to take Progressive Enhancement, as I see it, one step further by integrating the enhancement into the server-side process, where possible and applicable. I think this is going to be difficult, if you are trying to drive it from the server-side. This part

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Dan G. Switzer, II
Rick, That would work if the form were visible when the page is first opened, (And I may have to go that route if what I'm trying doesn't work...), but when the page is first opened, the form is invisible and a link has to be clicked to even view the form. So a named anchor wouldn't provide

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Dan G. Switzer, II
Rick, !---// if this is an AJAX call, we must return JSON data //--- cfif structKeyExists(url, ajax) and url.ajax !---// clear all generated data //--- cfcontent type=text/xml reset=true / cfoutput{ success: #stAction.success#, message:

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Rick Faircloth
way to determine if a user has Javascript enabled? Hi Rick, Let me summarize what everyone is saying before this turns into a long thread. Basically, there's no easy and surefire way of determining if JS is enabled on the browser. You need to code your forms and pages in the traditional way

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Dan G. Switzer, II
Rick, Isn't that what you do with this code is your ex2.3_mailing_list_validation.cfm example for the ex2_process.cfm page? Since it's obvious that you've downloaded my presentation, I need to point out that some of the things in the demo are bad concepts, but I did them to show the progression

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Rick Faircloth
to determine if a user has Javascript enabled? Rick, Isn't that what you do with this code is your ex2.3_mailing_list_validation.cfm example for the ex2_process.cfm page? That page has no AJAX based validation. I also do no JS detection. The code is set up so that if JS is unavailable, the form

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Dan G. Switzer, II
Rick, Isn't that what you do with this code is your ex2.3_mailing_list_validation.cfm example for the ex2_process.cfm page? That page has no AJAX based validation. I also do no JS detection. The code is set up so that if JS is unavailable, the form just works. -Dan

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Andy Matthews
Beat me to it. -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andy Matthews Sent: Friday, April 20, 2007 8:19 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Best way to determine if a user has Javascript enabled? Simple way to do

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Rick Faircloth
@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Andy Matthews Sent: Friday, April 20, 2007 9:37 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Best way to determine if a user has Javascript enabled? One thing to point out about mine and Dan's suggestion is that your Seach engine ranking

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Scott Sauyet
Rick Faircloth wrote: The simplest thing is just to add a post parameter that says ajaxOn=true or some such, then check for that server-side. It wasn't included in the HTML, or it was set to false, so if it's true, the server knows to respond with an AJAX request. It's pretty

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Rick Faircloth
, 2007 11:50 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Best way to determine if a user has Javascript enabled? Rick Faircloth wrote: The simplest thing is just to add a post parameter that says ajaxOn=true or some such, then check for that server-side. It wasn't included

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Priest, James \(NIH/NIEHS\) [C]
-Original Message- From: Scott Sauyet [mailto:[EMAIL PROTECTED] header HTTP_X_REQUESTED_WITH means no extra work in the JS, and is probably a better idea, as long as you are sure you will be using JQuery This sounds like the best way - I think you were using CF right? Maybe

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Rick Faircloth
: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Priest, James (NIH/NIEHS) [C] Sent: Friday, April 20, 2007 11:56 AM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Best way to determine if a user has Javascript enabled? -Original Message- From: Scott Sauyet [mailto

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Priest, James \(NIH/NIEHS\) [C]
-Original Message- From: Rick Faircloth [mailto:[EMAIL PROTECTED] Sent: Friday, April 20, 2007 12:00 PM (Hopefully it's compatible with CF 4.5!) Unfortunately it looks like it was introduced in v5: http://www.actcfug.com/files/cfmlhistory/functions/gethttprequestdata.ht m You

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Rick Faircloth
Waiting for CF 8... -Original Message- From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Priest, James (NIH/NIEHS) [C] Sent: Friday, April 20, 2007 12:52 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Best way to determine if a user has Javascript enabled

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Aaron Heimlich
, James (NIH/NIEHS) [C] Sent: Friday, April 20, 2007 12:52 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Best way to determine if a user has Javascript enabled? -Original Message- From: Rick Faircloth [mailto:[EMAIL PROTECTED] Sent: Friday, April 20, 2007 12:00 PM (Hopefully

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Rick Faircloth
, 2007 1:22 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Best way to determine if a user has Javascript enabled? In the meantime, I suppose you could use JavaScript to append a variable to the URL, and then have your CF decide what to send based on the presence of that variable. Example

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Felix Geisendörfer
Didn't read the entire thread but appending parameters like this to an url just doesn't seem right to me. Maybe your problem can be solved by looking if the client sent a X-Requested-With == 'XMLHttpRequest' header. That's how we in CakePHP find out if a page was requested via Ajax or not ;

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Aaron Heimlich
On 4/20/07, Felix Geisendörfer [EMAIL PROTECTED] wrote: Didn't read the entire thread but appending parameters like this to an url just doesn't seem right to me. I would normally agree, but Rick is using ColdFusion 4.5, which apparently isn't capable of inspecting HTTP Headers. -- Aaron

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Aaron Heimlich
On 4/20/07, Rick Faircloth [EMAIL PROTECTED] wrote: $(document).ready()(function { \n Should be: $(document).ready(function() { // stuff goes here... }); -- Aaron Heimlich Web Developer [EMAIL PROTECTED] http://aheimlich.freepgs.com

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Rick Faircloth
] Re: Best way to determine if a user has Javascript enabled? On 4/20/07, Rick Faircloth [EMAIL PROTECTED] wrote: $(document).ready()(function { \n Should be: $(document).ready(function() { // stuff goes here... }); -- Aaron Heimlich Web Developer [EMAIL PROTECTED] http

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Rick Faircloth
there might be something that's usually wrong when this pops up. Rick From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Rick Faircloth Sent: Friday, April 20, 2007 4:09 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Best way to determine if a user has Javascript enabled

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Aaron Heimlich
On 4/20/07, Rick Faircloth [EMAIL PROTECTED] wrote: The XML file does not appear to have any style information associated with it. The document tree is shown below. This is what FireFOX (not Firebug) does when you browse to an XML file that isn't using any XSLT stylesheets (and I would

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Rick Faircloth
code. Thanks for the tip. at least now I have some idea of what to look for! Rick From: jquery-en@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Aaron Heimlich Sent: Friday, April 20, 2007 6:23 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Best way to determine if a user

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Rick Faircloth
[mailto:[EMAIL PROTECTED] On Behalf Of Rick Faircloth Sent: Friday, April 20, 2007 6:55 PM To: jquery-en@googlegroups.com Subject: [jQuery] Re: Best way to determine if a user has Javascript enabled? Thanks for the feedback, Aaron. I'm trying to integrate the whole validation scheme into one page

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Aaron Heimlich
*Subject:* [jQuery] Re: Best way to determine if a user has Javascript enabled? Thanks for the feedback, Aaron… I'm trying to integrate the whole validation scheme into one page. I'm following an example given to me that does work, but using my own code, of course. I've got something wrong

[jQuery] Re: Best way to determine if a user has Javascript enabled?

2007-04-20 Thread Rick Faircloth
To: jquery-en@googlegroups.com Subject: [jQuery] Re: Best way to determine if a user has Javascript enabled? Show me exactly what XML you are attempting to return, I'm semi-familiar with Taconite so I should be able to make some sense of it. Also, I'm no CF whiz, but this doesn't make a whole lot