OK, that explains the doc a little better. The doc gives an example of
eval in the callback but I couldn't get it to work earlier. Now that I
really need it, I'm going to have to bang my head on it a bit to get
it working. The doc was a little thin about exactly why it was needed.
Now I understand.

On Oct 10, 12:06 am, Thadeus Burgess <thade...@thadeusb.com> wrote:
> 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 <richard_gor...@verizon.net> 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- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to