ColdBox Forums Notification: Post to Mixing JQuery with ColdBox

Title: RE: Mixing JQuery with ColdBox
Thread: Mixing JQuery with ColdBox
Forum: Need Help?
Conference: ColdBox
User: lmajano Hi Ben,

I recommend checking this guide out:
http://ortus.svnrepository.com/coldbox/trac.cgi/wiki/cbAjaxHints

It shows you
how to create a JSON Ajax proxy for what you are trying to do. However, if you
want a cleaner solution, I would use the coldboxproxy.

Also, Sana has some
great xml and json plugins here:
http://ortus.svnrepository.com/coldbox/trac.cgi/wiki/cbCodeDepot

So you have
two approaches you can do:

1) Call an event via:
index.cfm?event=settings.users.listUsers

Which will set JSON data in the
request collection and set a view of maybe

[code]
rc.data = myJSON;
event.setView('JSONProxy');
[/code]

Then on your JSONProxy.cfm template in
your views, you can use Sana's plugin to convert something to JSON or just
output it.

2) Call the coldboxproxy via cfc binding
coldboxproxy.cfc
method: process
arguments: {event=settings.users.listUsers}

So you have two
options which you can follow. I like the first option, because, I can actually
test the event by itself and get the content. However, it is a matter of
personal choice.
http://www.luismajano.com/forums/index.cfm?event=ehMessages.dspMessages&threadid=F8A48523-FF65-CEF6-65CE33F71E28AFBE