What I do is when the user first hits the site I set a cookie with JS and on subsequent requests I check to see if the cookie exists and if not I serve up the old code (or in my case to tell the user to turn on JS). But that assumes that the user has cookies turned on etc. In an ideal world degrading gracefully would be the way to go but that is not always practical.
HTH G! On Wednesday, November 21, 2012 10:30:45 AM UTC-5, Jason Allen wrote: > > Hi Guys, > > This might not be a direct OpenBD question, but OpenBD is my platform, and > I'm trying to find out what's the best way to go about this on OpenBD. > > I'm updating some of my app's pages to use Ajax, but I want to leave my > old cold in place so that if the user's browser doesn't support JS, it will > work as usual. > > I'd like to be able to have > > CFIF javascript.available > use ajax code > CFELSE > use traditional code > END > > That way I can have a single document, and the if/then statement > determines if a code block containg JS would be used or not > > -- online documentation: http://openbd.org/manual/ http://groups.google.com/group/openbd?hl=en
