Skip to content

Instantly share code, notes, and snippets.

@wallace
Created March 31, 2009 14:26
Show Gist options
  • Select an option

  • Save wallace/88213 to your computer and use it in GitHub Desktop.

Select an option

Save wallace/88213 to your computer and use it in GitHub Desktop.
1 <% content_for :file_upload_javascript do %>
2 <%= javascript_include_tag 'prototype.uploadProgress' %>
3 <script type="text/javascript" charset="utf-8">
4 Event.observe(window, 'load', function() { $('upload').uploadProgress(); });
5 </script>
6 <% end %>
7 <%= file_field(object_name, method, options) %>
8 <div id="progress" class="bar" style="display:none; width: 300px; background:#EEEEE none repeat scroll 0 0; border: 1px soli
9 <div id="progressbar" style="background:#333333 none repeat scroll 0 0; height:24px; width:0px;">test&nbsp;</div>
10 </div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment