In your callback, instead of replacing the HTML, eval the response
success="function (msg){ eval(msg); };"
So you would return javascript to accomplish what you want
from your view
return """
jQuery('#mydiv').html('%s');
jQuery('#otherdiv').css({"color": "red"});
""" % (DIV("Hi"))
-Thadeus
On Fri, Oct 9, 2009 at 10:59 PM, weheh <[email protected]> wrote:
> ave an ajax call that updates the contents of a div. The code that
> generates the div contents also embeds some javascripts into the div.
> For example, one of the javascripts is the ubiquito
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---