Displaying 11 results from an estimated 11 matches for "form_tag_with_upload_progress".
2006 Mar 07
2
Using form_tag_with_upload_progress
All,
I''m attempting to use "form_tag_with_upload_progress"
http://railsmanual.org/module/ActionView::Helpers::UploadProgressHelper/form_tag_with_upload_progress
However, I''m having a hard time understanding what I''m supposed to
provide and where in order to take advantage of it. There''s a lot of
information and I'&...
2006 Feb 04
0
form_tag_with_upload_progress
...to_s
picture = Picture.save(params[:picture])
session.update
finish_upload_status "''#{@message}''"
end
end
.
.
.
end
and the model:
class Picture < ActiveRecord::Base
.
.
def self.save(picture)
#save the picture here
end
.
.
end
and the view:
<%= form_tag_with_upload_progress({:action => ''upload''}, {:begin => "new
Effect.Appear(''status1'')", :finish => "new
Ajax.Request(''/picture/upload'', {asynchronous:true});" }) %>
.
.
<%= file_field ''picture'', ''file...
2006 Mar 09
1
Rails File Upload w/ Ajax Update?
I''m trying to upload a file, display the upload progress and then
update a table with the newly uploaded file. Is there a way to
specify a :success handler for form_tag_with_upload_progress such that
I have access to the request.response data (in the way I can with
link_to_remote)?
The :finish JavaScript is being executed but because there is no
request object, the table doesn''t update. Any ideas on how to get
around this issue?
As a base, I''ve started with Typo...
2005 Jul 27
1
Upload Progress, Error in Ajax.PeriodicalUpdater
Hi,
I''m using Upload Progress class of rails and geting this javascript
error in js console:
"*Ajax.PeriodicalUpdater is not a constructor*"
The view have somethink like:
<%= form_tag_with_upload_progress( {:action => ''create_gallery''},
{ :name => ''new_gallery'',
:begin => "alert(''begin'')",
:finish => "alert(''finish'');" } ) %>
Some sugestion where can be the error??
Thank&...
2006 Jun 16
2
Javascript error?
...gressBar1"><div
class="border"><div class="background"><div
class="foreground"></div></div></div></div><div class="uploadStatus"
id="UploadStatus1"></div>
</form>
--View--
<%= form_tag_with_upload_progress({:action => ''new''}, {
:begin => "new Effect.Appear(''status'')",
:finish => "$(''message'').innerHTML = arguments[0]" }) %>
<%= file_field :album, :file %>
<%= submit_tag ''Upload''...
2006 Jan 06
4
Upload Progress Bar Problems
I''m writing an application where the user will be uploading many images
and user feedback is essential.
I''ve been trying to get the upload progress bar plug-in to work, but
thus far have not had any success.
I''ve downloaded Sean Treadway''s application code from his site
http://sean.treadway.info/demo/upload/ and I followed the steps in his
Upload
2006 Apr 11
0
upload_progress with apache
...osed to be seeing. I see this like I am supposed to when I
run my code locally with webrick (although obviously I don''t see and
progress updates in that 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_t...
2006 Mar 07
1
Understanding ActionPack
So in order to user form_tag_with_upload_progress, it appears that I
need stuff that''s in the following:
actionpack/lib/action_view/helpers/upload_progress_helper.rb
Do I have to do something specific to get access to this stuff or is it
included automagically?
Thanks,
Wes Gamble
--
Posted via http://www.ruby-forum.com/.
2006 Mar 13
0
Upload progress problem with Ajax component
...rol back to the
browser when it should and therefore the progress bar can''t be updated.
I''m not sure what is wrong here - whether there is a genuine Javascript
problem or whether I am not returning control to my page correctly.
Here are some code snippets
upload.rhtml:
<%= form_tag_with_upload_progress(
{ :action => ''save_HTML'' },
{ :begin => ''do_start()'',
:finish => ''do_finish(arguments[0])'',
:frequency => 5 }) %>
<%= file_field ''eSimplyJob'', ''file'' %>
<P>...
2006 Jun 18
0
problems with upload progress plugin
...:script])
if @script.save
redirect_to "/home"
else
render :text => ''failed to save''
#render :action => ''new''
end
end
//////
def new
@scripts = Script.new
end
/////
<%= form_tag_with_upload_progress({:action => ''upload''},{:begin =>
visual_effect(:opacity,''upload_holder''),:finish =>
visual_effect(:opacity,''upload_holder'', :to=> 0)}) %>
<%= file_column_field "script", "file_name",{:class=> '...
2006 Apr 24
1
Upload Progress Bar not showing
...ad = Upload.new(@params["upload"])
if @upload.save
flash[:notice] = "File uploaded sueccessfully."
redirect_to :action => "list"
end
end
end
end
And the ''new'' upload view:
<h3>Upload File</h3>
<%= form_tag_with_upload_progress %>
<p><input type="file" id="upload_file" name="upload[file]"/></p>
<%= render :partial => ''upload_form'' %>
<p><input type="submit" value="Upload…"/></p>
<%= upload_st...