Hi,
The Multipart form upload with progress patch includes a patch that
allows
for the execution of <script> tags with Ajax.Updater.
See this .diff for more information:
http://dev.rubyonrails.com/attachment/ticket/1026/
upload_progress-1388-2.diff
You''ll need the changes to prototype.js and javascript_helper.rb.
Thomas
Am 07.06.2005 um 18:30 schrieb Mike Evans:
> I have a view that contains some javascript and HTML... I would like
> to return this view and dynamically insert it in my page via ajax:
>
> new Ajax.Updater(''datagrid_wrapper'',
''url/to/my/view'',
> {asynchronous:true});
>
> The problem is, the javascript in the returned view doesn''t get
> executed... I guess I just figured that overwriting innerHTML on an
> element with script tags would actually execute that js. Any
> recommendations on a work around withou having to change my view?
>
> Thanks,
> Mike
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>