Paul Andrews
2006-Aug-17 13:22 UTC
[Rails] Problem updating element with script in an AJAX response
Hi, I''m trying to use AJAX to update an element with a small HTML fragment that contains <script> tags. The problem is that although it seems the script is being evaluated (i.e. evalScripts is true), it isn''t doing what its supposed to. This is the script tag: <SCRIPT src="http://del.icio.us/feeds/js/tags/judge2005?count=169;size=10-24;color=666666-ffffff" type=text/javascript></SCRIPT> It does a bunch of document.write()''s. If the fragment is included inline in an HTML document it works fine, if its in the response to an AJAX call which is evaluated and used to replace an element on the page, you see nothing. Is there some way that this can be made to work? -- Posted via http://www.ruby-forum.com/.