Nope, isn't possible nor will it ever be possible (well, I can think of 
some hacks to get it to work, but that's not a serious option). What you 
should do follow this 
concept<http://en.wikipedia.org/wiki/Unobtrusive_JavaScript#Degrading_gracefully>,
 
it might be a bit hard to grasp your head around initially, but you should 
simply assume that javascript doesn't work and next use javascript to 
overwrite the browsers default behavior with the things you want to behave 
differently. So for example, you might have a link to another page, but 
bind to it with javascript and call the *event.preventDefault()* function 
and do something else with ajax.

On Wednesday, November 21, 2012 4:30:45 PM UTC+1, 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

Reply via email to