similar to: responds_to_parent plugin

Displaying 20 results from an estimated 4000 matches similar to: "responds_to_parent plugin"

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 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
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 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.
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
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:
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/.
2008 Jun 03
7
Iframe shenanigans
Here''s my problem. Unfortunately I have the need to load up fully qualified html documents into my page. (think tens of thousands of mini sites). I also have the need to be as handicap accessible as possible. (So ajax is essentially out, screen readers aren''t up to snuff yet). Thus I''m using an iframe. The unfortunate part is that I have navigation menus that appear over
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
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 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
2006 Jun 29
3
dynamic generation of iframes and writing to them
Hello Everyone, I would like to get some suggestions on a problem I am trying to address. - I send a request to a 3rd party server (for ads) and a response is received from them. - Currently, I display it inline on the page and things work fine but page loading is slow and the 3rd party response can mess up styles, js on my page. - So, I want to capture this response and dynamically generate
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
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:
2008 Jan 01
2
Ajax.Updater from within an IFrame
Hello together. I''m trying to call an Ajax.Updater from within an IFrame to update an element in the parent window. It is working, but I receive an error from Firefox when I do so. What I want to do is to upload a file, and then after the file has completed uploading, automatically reload a section of the page with information about the file to post-process it. However, AJAX
2006 May 09
8
Dynamically printing a page
Does anyone know of a cross browser solution to print a page/url after a user clicks a button? Currently, I''m using a "hidden" iframe to do my bidding. But from my experience, IE requires that the iframe''s src attribute be set initially to the url, in order for the page to open properly. I wasn''t able to add the iframe to the page dynamically, either. So
2012 Sep 24
1
Adding textbox to multiple panels in lattice
Dear R-users, I am trying to add some text in a textbox to all panels in the following example file. Using the panel-function, I can add a white rectangle with panel.rect but then I have to fit in the text into the box by hand and it will not automatically be centered. Does anyone know how to add the text centered with a white box around it automatically? Is there something like panel.textbox for