Displaying 7 results from an estimated 7 matches for "upload_status_tag".
2006 Jun 16
2
Javascript error?
...t; ''new''}, {
:begin => "new Effect.Appear(''status'')",
:finish => "$(''message'').innerHTML = arguments[0]" }) %>
<%= file_field :album, :file %>
<%= submit_tag ''Upload'' %>
<%= upload_status_tag %>
<%= end_form_tag %>
--Controller--
upload_status_for :new
def new
...
end
2006 Mar 09
1
Rails File Upload w/ Ajax Update?
...="<%= url_for(:action =>
''list'') %>" onclick="new Effect.BlindUp(''quick-resource'', {duration:
0.4}); return false;" >Cancel</a>
</div>
<div id=''status'' style="display: none"><%= upload_status_tag %></div>
<%= end_form_tag %>
<div id="message"><%= @message %></div>
</div>
<table id="resources-list" cellspacing="1" cellpadding="1" width="100%">
<thead>
<tr class="head...
2006 Apr 11
0
upload_progress with apache
...t case).
My code is straight out of the documentation:
V-
<%=stylesheet_link_tag ''upload_progress''%>
<%= form_tag_with_upload_progress({:action => ''create''}, {:finish =>
''alert("Document Uploaded")''}) %>
<%= upload_status_tag %>
<%= file_field ''document'', ''file'' %>
<%= submit_tag "Upload" %>
<%= end_form_tag %>
C-
def create
@documnet = Document.create(params[:document])
end
does anyone have a sense of what could be going wrong with the p...
2006 Mar 13
0
Upload progress problem with Ajax component
...=> ''do_start()'',
:finish => ''do_finish(arguments[0])'',
:frequency => 5 }) %>
<%= file_field ''eSimplyJob'', ''file'' %>
<P>
<%= submit_tag "Upload" %>
</P>
<%= upload_status_tag %>
<%= end_form_tag %>
In my controller: upload_status_for :save_HTML
save_HTML (in controller):
public
def save_HTML
@filename = @params[:eSimplyJob][:file].original_filename
File.open("#{RAILS_ROOT}/htmlfiles/#{@filename}", "wb") do |f|
f.write(@para...
2006 Feb 04
0
form_tag_with_upload_progress
...est(''/picture/upload'', {asynchronous:true});" }) %>
.
.
<%= file_field ''picture'', ''file'' %>
<%= submit_tag ''Upload'' %>
<div id="status1" style="display:none;width:80%;">
<%= upload_status_tag %>
</div>
<%= end_form_tag %>
after finish upload it makes an ajax request to the same action,
this works fine but if i take a look at the console where i have started
the webbrick server, i can see that it calls permanently the
/picture/upload_status?upload_id=.. with different f...
2006 Jun 18
0
problems with upload progress plugin
...eld "script", "file_name",{:class=> ''file hidden'',
:noscript => true} %>
<%= submit_tag "Upload" , {:disabled => ''true'', :id => ''upload''}%>
<div id="upload_holder"><%= upload_status_tag %></div>
<%= end_form_tag %>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060618/66b87e06/attachment.html
2006 Apr 24
1
Upload Progress Bar not showing
..._progress %>
<p><input type="file" id="upload_file" name="upload[file]"/></p>
<%= render :partial => ''upload_form'' %>
<p><input type="submit" value="Upload…"/></p>
<%= upload_status_tag %>
</form>
<p><%= link_to ''« Show All Uploads'', :action => ''list_uploads''
%></p>
Also, if this affects the uploading progress bar process, in my model
I''m specifying that I''ll have the upload saved in...