6 messages in com.googlegroups.google-gearsRe: Gears with ColdFusion
FromSent OnAttachments
Chuck05 Dec 2007 12:24 
Dimitri Glazkov05 Dec 2007 12:35 
Ben Lisbakken05 Dec 2007 12:47 
Ben Lisbakken05 Dec 2007 13:06 
Chuck10 Dec 2007 05:07 
Ben Lisbakken10 Dec 2007 12:15 
Subject:Re: Gears with ColdFusion
From:Ben Lisbakken (lisb@google.com)
Date:12/05/2007 12:47:48 PM
List:com.googlegroups.google-gears

Hey Chuck -

Dimitri is right -- CF and JavaScript can't talk directly (Gears code is all written in JavaScript).

Here's an idea though. I just looked up CFAjax (http:// www.indiankey.com/cfajax/). If you can do Ajax req's in CF then what you could do is make a CFAjax request to a JavaScript, then do a cfoutput of that JavaScript embedded in the script tags. Then, all you'd have to do is setup the JavaScript so that it runs the Gears init code and then does what you want (say, print out a list of all of the contents of the local database... or store values in the database). It might be kind of a headache, but I think this solution works. Some one correct me if I'm wrong somewhere.

HTH Ben

On Dec 5, 12:35 pm, "Dimitri Glazkov" <dimi@gmail.com> wrote:

Chuck, CF is a server-side technology. Gears is a client-side technology. They would never meet. Or are you thinking about writing a JS-based CF interpreter?

:DG<

On Dec 5, 2007 2:24 PM, Chuck <ch.@idpintl.org> wrote:

All my applications are written in CF. Can Gears process CF code to interact with the DB?