Are you saying that I'll be calling 'coldboxproxy.cfc' as the
component for all my ajax requests? (Really?)
And that I can just call a normal event handler in the framework?
(That sounds right)
And that the '_o' variable will end up in the request collection?
(hmmm...)
Sana has it right,
You can bind calls to the proxy and treat them as normal events in the back end.
You would hit the proxy and call the process method on it, and passing the event variable and any other variables your event can use for processing. Then the handler can return values or if the “ProxyReturnCollection” setting is set to true, it will return the request collection structure. If not, just return what you need from the handlers.
You might also want to consider building a UI plugin for your JS and CSS. Then you can do something like the following in a layout or view:
#getMyplugin("myUI").renderJS('formElements')#
or
#getMyPlugin("myUI").renderJS("draggables")#
Then your custom plugin encapsulates the JS. Try that.
Sana, I will review the app, but I can see already some problems with it. I will add it to the SVN probably tomorrow so we can start versioning the sample application. But GREAT WORK on this. I will also get Rob to take a look at it.