Handlers and Proxy question

I’ve been reading through the documentation and I can’t find how to do this (or if it is even possible). Is there a way you can use the same event handler method to either display a view, or include a view in another page via AJAX?

For Example you have an event called AboutUs and you want to display it on the AboutUs page with the layout.main.cfm file. Additionally, you want to have a proxy method getAboutUs that returns the HTML in the vwAboutUs file without including the layout.main.cfm… Can you have that occur through the same method?

I’m currently creating a private method in the handler that does the work that is duplicated, but it seems like I’m missing something.

Thanks!
Christine

http://www.quackfuzed.com/index.cfm/2008/5/16/ColdBox-26–AJAX-powered-by-jQuery–Sinfully-Easy

HTH

If you don't want the layout to render use this:

<cfset event.noRender()>

Ernst

Nice to see you on the ColdBox list :slight_smile:

Peter