similar to: form_remote_for & file uploads

Displaying 20 results from an estimated 3000 matches similar to: "form_remote_for & file uploads"

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
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 (
2009 Feb 11
0
remote_form_for file_field strangeness
Does anyone see any problem with this form? - form_remote_for(Photo.new, :html => {:multipart => true, :target => :uploader}) do |f| .form_element = f.label :photo = f.file_field :collateral = hidden_field_tag :container_id, @shoot.id = hidden_field_tag :container_type, @shoot.class.name .form_element = f.submit ''Add Photos'' The photo has a
2010 Jun 26
1
Ajax Form with Multipart File Upload in Rails 3.0
How would I achieve this? In Rails 2.x, I would use responds_to_parent, but it seems quite unsupported now. What plugins/gems do people use nowadays that would automate 1) targeting form to iframe 2) sending javascript to iframe 3) having the javascript execute another javascript on parent page Thank you, Sharkie -- Posted via http://www.ruby-forum.com/. -- You received this message because
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
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 17
0
RJS referring to window.parent
Hi all, I''ve been doing some work on the Ajax Scaffold (http://www.ajaxscaffold.com/), to make it work with file uploads (more specifically, the file_upload plugin). The first logical step was to get rid of form_remote_tag, since it''s impossible to send files via XMLHTTPRequests (to my best knowledge). So I referred to the iframe hack, similar to the upload progress bar here
2007 Nov 05
0
Ajax - attachment_fu - rmagick and iframe
Hello I am uploading images ajax-attachment_fu-rmagick and an iframe and me climb correctly, but when I finish the process and the driver will I redirect_to enc_url I recharge layer ajax. I tried with redirect_to enc_url :partial => ''m_content'' and redirect_to enc_url, :update => ''m_content''. But neither I recharge ... rhtml ------ <% form_for(photo,
2007 Apr 25
2
form_remote_for, reloaded
Hi, being relativly new to RoR, I''m having a problem which I found described in this forum and somewhere else - but with no solution. I know, that it may be bad to mix table and form tags, but the first solution of an in place editing within a table looked nice: Version using form_for: <tr> <%form_for :time_record, :url => { :action => "add_time_record" } do
2009 Feb 10
0
Re: form_remote_for NOT passing param: I want put and I get
Your :method is in the wrong place, it belongs after the first hash, look at the docs for the form reote for -----Original Message----- From: Raimon Fs <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> Sent: Tuesday, February 10, 2009 5:08 PM To: rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Subject: [Rails] Re: form_remote_for NOT passing param: I want put and I get
2006 Aug 03
1
RadRails install plugin problem
Hi, I''m having a problem installing plugins in the latest version of radrails running on windows XP. I used the Plugin window in radrails to select file_column to install file_column and everything worked ok. Now i want to install remote_upload plugin which isnt in the plugins list contained in radrails. So i select plugin from the generators tab and type remote_upload and hit
2006 Feb 23
1
Ajax, validation, flash messages & redirects...
Hi everyone, I''m working on an file upload page that uses an ajax progress bar (http://sean.treadway.info/demo/upload/). I''ve also got validation on the uploads (must be a certain file size/mime type etc). When uploads pass validation - all is dandy. But when they fail - I can''t work out how to redisplay the form with the flash error messages (that normally appear
2006 Aug 03
5
Multiple Loading events in form_remote_for
Is it possible to have multiple loading events in the params for form_remote_for? I''d like to do this :loading => "Element.show(''form-indicator'') and this :loading => "Element.hide(btn-submit'') Thanks! -------------- next part -------------- An HTML attachment was scrubbed... URL:
2006 Nov 04
0
Controller don''t receives form parameters using form_remote_for
Hi. I''m having a problem that I am sure there is a simple solution for, but I can''t see it. I have the following partial: <% form_for :time_entry, TimeEntry.new, :url => hash_for_time_entries_url(:period => @period, :action => ''new''), :html => { :id => ''time-entry-form'' } do |f| %> <table border="0"
2006 Aug 09
0
h() assistant or sanitize() with form_remote_for
How can I html-escape an input fieldin my form ? I cannot use them directly h(f.text_field ''name'', :size => 30 %) or sanitize(f.text_field ''name'', :size => 30 %) are incorrect.... <% form_remote_for :property, @property, :url => {:action => @action, :id => @property }, :loading =>
2006 Sep 20
2
Not receiving form data using form_remote_for
Hi. I''m having a problem that I am sure there is a simple solution for, but I can''t see it. I have the following partial: <% form_for :time_entry, TimeEntry.new, :url => hash_for_time_entries_url(:period => @period, :action => ''new''), :html => { :id => ''time-entry-form'' } do |f| %> <table border="0"
2011 Mar 02
2
Rails3 Uploading a File over AJAX
What is the Rails Way of uploading a file over AJAX with Rails 3? In previous versions of Rails, I''ve posted to a targeted iframe and used responds_to_parent to render the response. This doesn''t appear to be working with Rails 3. Anyone know a better solution? Thanks! Tom -- You received this message because you are subscribed to the Google Groups "Ruby on Rails:
2009 Feb 10
2
form_remote_for NOT passing param: I want put and I get post
Hello, I''m struggling my brain with this ajax issue ... Basically I have a form for creating records, and I want to submit it using Ajax. On previous versions of RoR (2.0.2) it was working, but the same methods doesn''t work on 2.2.2, and I started to make changes and changes and read forums and the api, but no way ... <% form_remote_for (:expedient, :url => {:action
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.
2007 Mar 14
9
file_field doesnt work inside form_remote_for
When I do file_field within a form_for things are fine... but within a form_remote_for, with nothing else changed, I find that the params does not even have the element document[uploaded_file] even though it is definitely present in the HTML source in the form. Obviously the file upload fails. Am I missing something? Or has someone else faced this? Or is this a known bug? Rajesh