tangent question regarding Ajax best practice

In my current project, I’m finding myself really adding meat to my global ajax responders (the global code that typically is used to indicate that some ajax activity is taking place). This is really the first time it has seemed like the right place for me to add a lot of logic, but in doing so it got me to wondering if I really SHOULD be doing this. Reason being, my global responder is going to respond “globally” to ANY ajax activity, and the logic I’m writing will only apply to SOME of the ajax activity (in this case, some = most, but not all).

How does it strike you all who use global responders? Is it just a bad road to go down to add logic that only applies to certain ajax calls in a global responder?

Thanks for your thoughts.

Doug Boude

Maybe have a global interceptor for global interceptions, and then localized interceptors at the handlers level.
Luis F. Majano
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com