Re: [Cheetahtemplate-discuss] IE check in Cheetah
Brought to you by:
rtyler,
tavis_rudd
From: Mike O. <slu...@gm...> - 2006-09-13 03:45:08
|
On 9/12/06, anil maran <an...@ya...> wrote: > > > > 1) is there an easy way to check if it IE and then print some content > > for example > > #if browser == IE > > <div class="IEonly_div-continer"> > > #else > > <div class="gencontiner"> > > #end if > > > > 2) Are these easy ways to integrate ajax into CHeetah... Neither of these have anything directly to do with Cheetah. Your web framework (TurboGears, Quixote, etc) will provide a way to check the browser type, then you can set a boolean placeholder value for the template. AJAX is using Javascript to call server methods from the browser. Javascript code is simply ordinary text as far as Cheetah is concerned -- Cheetah doesn't know the difference between Javscript and HTML. I know TurboGears has some Javascript support built in, which is based on the MochiKit Javascript library. -- Mike Orr <slu...@gm...> |