Displaying 20 results from an estimated 400 matches similar to: "Upload progress problem with Ajax component"
2006 Mar 13
2
Newbie: Can''t get file to upload
Since I can''t get the fancy upload progress thing to work, I thought
that I would revert back to a regular file upload scenario.
I have a very simple file upload form set up. It appears that my file
parameter is coming into the controller as a string, not a file object.
Here''s my view:
<%= form_tag :action => ''save_HTML'',
:multipart
2006 Feb 04
0
form_tag_with_upload_progress
hi all!
i have a PictureController with an upload action:
class PictureController < ApplicationController
.
.
.
upload_status_for :upload
.
.
.
def upload
if params[:picture]
@message = "File uploaded: " + params[:picture][:file].size.to_s
picture = Picture.save(params[:picture])
session.update
finish_upload_status "''#{@message}''"
end
2006 Jun 16
2
Javascript error?
Hi, I''m trying to get this progress bar plugin working, but I''m
having some trouble.
I''m running Apache 2.0.52 with mod_fcgid on Mac OS X. Everything
seems to be working fine, but the progress bar simply doesn''t work.
In my log I get:
Multipart upload with progress (id: 1, size: 176731770)
Finished processing multipart upload in 18.96244s
but no requests in
2006 Apr 24
1
Upload Progress Bar not showing
Hi. I''m setting up an upload form for internal users of a Rails site,
and I''m trying to use the Upload Progress Bar plugin from
http://sean.treadway.info/demo/upload/. I followed the directions as set
out in the Rails Wiki
(http://wiki.rubyonrails.org/rails/pages/Upload+Progress+Bar).
Basically the problem is no progress bar or any upload information shows
up. In WEBrick, I
2006 Mar 08
2
Upload progress update bar question
I''m trying to follow these instructions to include the Javascript
progress bar on a page. However, I''m confused.
In my controller, when I try to access
update_upload_progress_bar_js
which is defined in
actionpack/lib/action_view/helpers/upload_progress_helper.rb
I get a "no such method" error.
Can I use helpers in my controller class and, if so, how do I
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
2006 Apr 11
0
upload_progress with apache
I am running Ruby 1.8.4, Rails 1.1, and apache2 with fcgid. I installed
the upload_progress plugin, but it doesn''t seem to be working. In my
log I see only
Processing SortController#create (for 71.32.223.31 at 2006-04-11
11:29:09) [POS\
T]
Session ID: 556c9a44ce6452a22bc1dbbab3ee5a2f
Parameters: {"commit"=>"Upload",
2006 Jun 18
0
problems with upload progress plugin
Probably something obvious that im missing but since implementing the plugin
version of upload progress i''m receiving the error beneath, I have included
the relevant controllers refered to by the error. Any help would be much
appreciated;
NoMethodError (undefined method `file_name_temp='' for #<Script:0x55f9d90>):
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 Mar 27
3
regular expression matching in routes.rb
All,
I have a route specified as:
map.connect '':folder/:filename'', :folder => /htmlfiles/, :controller =>
"eSimply", :action => "preview_HTML"
I expect it to invoke the "preview_HTML" action in the "eSimply"
controller.
Given an argument of "htmlfiles/xyz.html", it keeps saying that it can''t
find an
2005 Nov 19
0
upload_status_for undefined method?
Hi all,
I''m trying to put in an upload progress bar for my application,
and when I try:
class ContactsController < ApplicationController
auto_complete_for :contact, :name
upload_status_for :create
...
I get this error:
undefined method `upload_status_for'' for ContactsController:Class
How can that be? Isn''t progress bar part of ActionView,
which is
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''m sure I can figure it
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 =>
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 Dec 28
1
ActionMailer/SMTP: Net::SMTPSyntaxError when message body contains only a 'dot'
FYI:
I don''t think this is a very well know. It seems that, on some
operating systems, ActionMailer/SMTP crashes when it sends an email
with only a ''.'' (aka a ''dot'' or a ''period''). Specifically, you get
Net::SMTPSyntaxError (502 Error: command not implemented):
Environment Details:
$ uname -a
Linux private1 2.6.15-26-server #1 SMP
2006 Feb 08
2
ActionMailer EOFError (sometimes)
I''m having problems sending emails sometimes using ActionMailer. Looks
like some emails are never sent because something breaks when sending
it. It is a small quantity but can''t even have one drop. Browsing
through the list I saw that one person had the same error as I did but
in his case he couldn''t send any emails and in the end he needed no
authentication at all.
2006 May 29
2
save view to file
Hi,
I am trying to figure out a way to save the view of an action to a file.
I have an action call makehtml. It gets data from a database and create
a view that display the result in a browser. I would like to save that
result view page to a file in public/htmls for example.
Does anyone know how I can do this?
Thanks for all your help in advance.
--
Posted via http://www.ruby-forum.com/.
2006 Mar 22
2
Successfully importing Rubyful Soup objects
All,
At the top of my controller, I have:
require ''rubygems''
require_gem ''rubyful_soup''
The rubyful_soup gem has been successfully installed.
However, when I go to instantiate a class from it, using
parser = BeautifulSoup.new(html)
I get
uninitialized constant BeautifulSoup
Is there something else I need to do to see the symbols in the Rubyful
Soup gem?
2010 Aug 01
0
ScrapeR Unanticipated XML objects
Dear All,
I have come across a very surprising result as I have started to learn how
to use R to pull data from the web for analysis.
I am trying to isolate that table headers for the quarterly income
statement (qtrinc) that I pulled from Google finance. I executed the
following commands after installing the scrapeR package.
require(scrapeR)
2008 Nov 14
3
Change Confidence Limits on a plot
Hi,
I am attempting to set the confidence limits on a ls means plot as follows:
mult<-glht(lm(effectModel, data=statdata, na.action = na.omit),
linfct=mcp(mainEffect="Means"))
meanPlot <- sub(".html", "meanplot.jpg", htmlFile)
jpeg(meanPlot)
plot(mult, main=NA, xlab=unlist(strsplit(Args[4],"~"))[1])
This produces 95% CIs by default but I would