Displaying 20 results from an estimated 2000 matches similar to: "Ajax Form with Multipart File Upload in Rails 3.0"
2006 May 29
3
IFRAME based RJS - responds_to_parent
** File uploads with AJAX mojo **
Respond with RJS to your parent window with a form action targeted to
a hidden IFRAME. Handles all the painful situations like scoping
your JavaScript to your parent window generating the script block for
execution and clearing the IFRAME after execution so the back button
doesn''t re-execute the action.
`plugin install
2006 Jul 11
1
responds_to_parent plugin
Not sure where I can get help with this one but I getting a wierd
behavior out of safari when trying to use the responds to parent
plugin. Basically I have the following in my view:
<div class="rightsidecontentbody">
<%= form_tag({:action => "create"}, {:multipart => "true", :target
=> "frame"}) %>
<form
2006 May 30
2
Strange error
I have been getting the following error everyonce in a while. Can
someone please suggest what could be going wrong with my system? It
happens about once every 3 weeks. I resolve this by rebooting my server,
although I never tried to figure out what is the real problem.
Sharkie
2006-05-30 16:53:49: (mod_fastcgi.c.1561) connect failed: 386 Connection
refused 111 0 /tmp/site.fcgi.socket-2
2007 Nov 06
3
Urgent!!!! responds_to_parent error
Hello
I am trying to upload a picture and refrecar layer with
responds_to_parent. I have this form
rhtml
------
<% form_for(photo, :url => {:action => "create", :tID => params[:tID] },
:html => { :multipart => true, :target => "uploadFrame", :id =>
''uploadPhotoForm'' }) do |f| -%>
<tr>
<td>
<div
2007 Nov 09
1
ruby on rails + ajax + iframe image uploader
hi,
I write a page that contain following function:
this site contain a html file upload control, which allow user to upload
image only.
once the image had been uploaded, it will automatic display on the
current page without refresh entire page.
when the image is saved, it will return javascript that embed in a
iframe (which is also in my current page) that can load the image into
my page (
2006 Jul 22
17
Problem getting form_remote_tag to work with image upload
Hey guys,
I am trying to pass the parameters for the file being upload, but the
params[] are not being passed. Ive read through some posts and realize
this is an issue with RoR.
I read through some of the posts and someone suggested using:
http://svn.kylemaxwell.com/form_remote_upload/trunk/
I tried to install it, and although I thought I installed it correctly,
it doesn''t work.
2009 May 07
5
Controller redirect_to to leave iframe
Inside an iframe, I want the controller to redirect_to to the parent
(i.e. target =''_parent'').
Any ideas?
(Everything I''ve tried- via redirect_to - just keeps it inside the
iframe)
2006 Aug 06
2
file upload with form_remote_tag
Is there a way to use form_remote_tag and to upload a file? The default
behavior ignores the upload when the Javascript serializes the form to
create the parameter list.
Basically, i''m just looking for an ajax file upload capability. Any help
would be appreciated.
thanks.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2006 Jul 30
1
custom routing in simply_restful
Is there information on how I can define custom paths/actions other than
these:
/users/new GET new
/users/id;edit GET edit
so for example I can have my own:
/users/log_in GET log_in
/users/id;process_log_in GET process_log_in
So far I cannot find any documentations on these at all.
--
Posted via http://www.ruby-forum.com/.
2006 Apr 23
3
Does AJAX form_remote_tag remove "\r\n"?
When I submit textarea with "\r\n" inside its content, all the "\r\n"
are gone at the receiving end? Is there a known behavior I should be
aware off? Or should I start looking some where else.
Thank you,
Sharkie
2007 Dec 31
3
undefined method `content_type'
I am using form_remote_tag to upload a file, but it says ..
undefined method `content_type'' for #<String:0x477a930>
what could be wrong when it works fine with form_for?
--
Posted via http://www.ruby-forum.com/.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To
2008 Mar 19
6
Back button behavior has changed again in Safari 3.1, after doing a dom update via ajax/RJS
GAH!
Here is the firefox behavior, which is perfect:
1) View page 1
2) Update some text by using link_to_remote or remote_form_for, along
with an RJS replace or replace_html
3) Navigate to page 2
4) Hit back
5) Page was cached with dom updates, note that the page is show in the
same state as it was left
Safari 3.0 behavior
1..4) repeat
5) Page reloads, ending up in the state where it was left
2010 Jun 26
0
erase_redirect_results in Rails 3.0
This method is non-existent in Rails 3.0. It is required for
responds_to_parent.
I try commenting it out but would get
AbstractController::DoubleRenderError
Thank you,
Sharkie
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to
2007 Feb 27
0
form_remote_for & file uploads
Has anyone successfully gotten Ajax file uploads working using
form_remote_for & attachment_fu? I have seen Sean Treadway''s
responds_to_parent plugin and many other samples available, and they
all seen to statically generate <form> tags. Is there a way to get a
file upload to work using the Rails helpers?
<% form_remote_for(:message, @message, :url =>
2006 Jul 13
2
Iframe upload indicator
I''m using the iframe trick to upload files with form_tag and a target
pointing to the iframe. All is working, but I would like to display an
indicator of the upload. All I want to do is show a hidden animated gif via
Element.show. With form_remote_tag, i could use the :loading and :complete
callbacks to do an Element.show and Element.hide. How do I achieve a similar
effect with form_tag?
2006 Mar 24
3
Performance slow down with increasing log files size?
Dear all,
I have been noticing this.
Whenever I delete my log files and restart lighttpd, my rail site
runs very fast.
However when my log files become large, my rail site becomes slower.
Then I repeat the process of deleting log files again, and my site is
fast again.
Is this a normal behavior? Is there something I can do to make
performance scale better?
Thank you,
Sharkie
2006 Jul 03
7
form_remote_tag with multipart/form-data
Does form_remote_tag supports multipart/form-data ?
My form looks like this:
<%= form_remote_tag :url => { :action => ''do_image_upload'' },
:html => { :enctype => ''multipart/form-data'' } %>
<%= file_field ''image'', ''file_data'', :size => 32 %>
<%= submit_tag
2006 Jun 26
2
Drag''n''drop DOM elements between (I)FRAMEs
I am quite disappointed in the drag ''n'' drop support in Mozilla Firefox.
What am trying to achieve is dragging an element from one IFRAME/FRAME into
another IFRAME/FRAME. But upon dropping the element, I do not want the
target IFRAME/FRAME to open/load it. I want it simply to handle the event,
such as parsing the element/data dropped. Such uses as dropping an element
into a
2005 Sep 15
2
IE iframe bug with Autocompleter over HTTPS
I ran across an issues using the Autocompleter over HTTPS in IE (6.0
in WinXP Pro SP2).
I plan to submit a bug report to the Ruby on Rails trac, but first I''d
like "to discuss this on th[is] Mailing List beforehand, maybe it''s
already known and in the works, or it isn''t a bug" (per
http://wiki.script.aculo.us/scriptaculous/show/BugReports)
The autocomplete
2007 Jul 24
4
How to pull the title and url from an iframe?
I have an iframe in which the user can browse. When they hit the ''add
this page'' button i need to retrieve the url and the title of the page
currently shown in the iframe.
Does anyone know how to do this? Do i need to assign a variable name to
my iframe? (currently it just sits in my template as a bit of html)
--
Posted via http://www.ruby-forum.com/.