The key notion in ajaxCFC is that the "backend server" is modeled and
implemented as a CFC, which gives you one entry point (the cfc's url) to
multiple methods (the cfc's functions). One way or the other, the
server has to implement your server-side logic, and modeling it as a CFC
is pretty natural (to me, anyway). I haven't looked at Prototype or
Dojo, so I can't say whether they model things better on the server
side.
Mark
-----Original Message-----
From: Jeff Chastain [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 22, 2006 9:25 PM
To: CF-Talk
Subject: RE: Framework + Ajax?
I have actually been taking apart the Mach-II + ajaxCFC demo, and have
come to the conclusion that I just don't get ajaxCFC. Ajax in my
understanding is supposed to be client-side JavaScript making
asynchronous calls to the backend server. So with this, where do CFCs
come into play? Ajax frameworks like Prototype and Dojo just make a lot
more sense to me.
I can see how everything works in terms of the general Ajax back and
forth traffic once the UI is displayed. The thing I am questioning is
how to display the initial UI when using a framework like Mach-II or
Model-Glue.
Thanks.
-----Original Message-----
From: James Holmes [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 22, 2006 8:18 PM
To: CF-Talk
Subject: Re: Framework + Ajax?
ajaxCFC has been intergrated with Model-Glue. You might check out the
ajaxCFC site for info which may answer your question:
http://www.robgonda.com/blog/index.cfm/2006/1/21/ajaxCFC-for-ModelGlue-E
xpla
ined
On 6/23/06, Jeff Chastain <[EMAIL PROTECTED]> wrote:
> How does a framework, say Mach-II (although I see the same issue with
> Model-Glue or FuseBox), work with Ajax? I can see easily how you
> could make a call via Ajax to index.cfm?event=listContacts which would
> return HTML, JSON, or whatever to rebuild a portion of the page. The
> question I am running into is how does the initial interface get built
> ... in other words all of the layout, header, navigation, etc.?
>
> There has got to be something basic here that I am missing, but I am
> just not seeing this.
--
CFAJAX docs and other useful articles:
http://jr-holmes.coldfusionjournal.com/
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:244624
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54