Displaying 1 result from an estimated 1 matches for "file_item".
2006 Oct 11
0
Upload Progress and Finishing Up
...pt is being
rendered as text in the iFrame (Safari 2.0).
I have this code at the end of my upload action:
render :update do |page|
page << "window.parent.UploadProgress.finish();"
page.insert_html :before, ''file_upload_box'', :partial =>
''/collection/file_item'', :locals => {:file_item => @new_pd_file}
page.visual_effect :fade, "file_item#{@new_pd_file.id}"
end
The idea is that it calls the JavaScript finish and then it inserts a new TR
in my table, showing the item that was just uploaded. Instead I just see the
rendered JavaSc...