Thanks for the response, ron_m. However, the issue is a little more
nuanced than my message might have stated originally. As a general
rule, ajax(...) and web2py_ajax_page(...) look to a controller for a
callback. I was thinking it might be nice for the ajax call to be
serviced from a global space, since the same callback may be used by
multiple controllers. The problem with putting the callback in modules
or models is that *I think* I need a callback "stub" in each of the
controllers, said stub then calling the function stored under models
or modules. Is this really the case, or is there a better way? Can the
web2py_ajax_page() or ajax() functions access callbacks in a global
space? If yes, what would the syntax be for such a call?

Reply via email to