List Info

Thread: Problem updating element with script in an AJAX response




Problem updating element with script in an AJAX response
user name
2006-08-17 13:22:43
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/t
ags/judge2005?count=169;size=10-24;color=666666-ffffff&
quot; 
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
/.
_______________________________________________
Rails mailing list
Railslists.rubyonrails.org
h
ttp://lists.rubyonrails.org/mailman/listinfo/rails
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )