It depends on how you do the ajax call:
I suggest you can use the web2py_ajax.html function:
web2py_ajax_page(method,action,data,target)
For example in view
<button
onclick="web2py_ajax_page('POST','{{=URL('callback'}}}',null,'target');">click
me</button>
<div id="target">
and in controller
def callback():
response.js = "jQuery('.flash').html('hello!').fadeIn();"
return "hello world"
Massimo
On Dec 23, 7:19 pm, weheh <[email protected]> wrote:
> Let me try to state this more succinctly:
>
> How do I get a jQuery, which is created by a controller in response to
> an ajax call, to execute when loaded into it's target div?