I have 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 ubiquitous "share this"
button. A simple test case, therefore, is a div that just inserts the
sharethis button and changes the url, title, and summary of the
SHARETHIS.addEntry({title:"new title",url:"http://www.mydomain.com/
12345",summary:"We are great" ... etc.

Upon initial creation of the web page, the share this button is
visible. However, after regenerating the contents of the div using the
ajax call, the share this button disappears.

I am also trying this with other javascript programs and they also
don't function.

So, I'm wondering if I have to do something special to get a
javascript to run if the javascript is created by an ajax call?
--~--~---------~--~----~------------~-------~--~----~
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