Re: Javascript test in ColdFusion

2012-04-04 Thread Robert Rhodes
Thanks to all for the suggestions on this. I went with the approach below and it worked well. Thank you Andy, -RR On Mon, Mar 26, 2012 at 11:39 PM, andy matthews li...@commadelimited.comwrote: A dead simple way of testing for JavaScript: script window.location.href =

Re: Javascript test in ColdFusion

2012-04-04 Thread Phillip Vector
Umm.. Why not just put in noscript? On Mon, Mar 26, 2012 at 8:39 PM, andy matthews li...@commadelimited.com wrote: A dead simple way of testing for JavaScript: script        window.location.href = 'javascriptCapable.cfm'; /script meta http-equiv=refresh content=1;

RE: Javascript test in ColdFusion

2012-04-04 Thread andy matthews
My pleasure RR. andy -Original Message- From: Robert Rhodes [mailto:rrhode...@gmail.com] Sent: Wednesday, April 04, 2012 7:05 PM To: cf-talk Subject: Re: Javascript test in ColdFusion Thanks to all for the suggestions on this. I went with the approach below and it worked well

Re: Javascript test in ColdFusion

2012-03-26 Thread Cameron Childress
This is something you must do on the client (browser) and is not information available on the server. So, putting it in Application.cfc isn't at straightforward as you think. If you google test javascript enabled you'll get a bunch of links on some client side code to run the test. BrowserHawk

Re: Javascript test in ColdFusion

2012-03-26 Thread Azadi Saryev
if i had to do something like this, i would: 1) build a site that works without js (i.e. all links take user to a new page that shows requested data) 2) enhance the site with ajax (i.e. override default link actions and load data via ajax without redirects) there's no one-liner you can put into

RE: Javascript test in ColdFusion

2012-03-26 Thread andy matthews
A dead simple way of testing for JavaScript: script window.location.href = 'javascriptCapable.cfm'; /script meta http-equiv=refresh content=1; url=nonJavascriptCapable.cfm If a browser understands JS they get one page, if they don't they get another. One thing to consider though that