Displaying 20 results from an estimated 23 matches for "responds_to_parent".
2006 May 29
3
IFRAME based RJS - responds_to_parent
...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 http://sean.treadway.info/svn/plugins/
responds_to_parent`
class EnterpriseElevatorPitchExampleController < ActionController::Base
def iframe_target_action
responds_to_parent do
render :update do |page|
page.hide :progress_bar
page.show :success
page.replace_html :success, ''Finished''
page.alert "RJS isn'...
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>
<...
2006 Jul 11
1
responds_to_parent plugin
...its a simple little proof of concept app that I have been playing
with as my knowledge of rails grows as well as as new features/
plugins come out so that I can see how different things work.
the controller looks like this:
def create
@publisher = Publisher.create(params[:publisher])
responds_to_parent do
render :update do |page|
page.replace_html ''rightcolumncontent'', :partial => ''show''
end
end
end
my problem is that safari automatically tries to create the publisher
as soon as I load up the new publisher page and runs cre...
2010 Oct 07
0
responds_to_parent in rails 3
Hi,
In rails 3 respond_to_parent is not working. I am getting some
undefined method errors. Is there is any way to solve the issue in
rails 3.
--
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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group,
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.
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...
2006 Aug 03
1
Very strange - AJAX is flakey when I uploaded my site
...ajax uploading call, and
after I uploaded it, every part of the controller will work except the
ajax call.
The Ajax call is to a javascript function that is in one of my js file.
Ive confirmed that the controller runs all the way till the render
:update. Then, there I have:
responds_to_parent do
render :update do |page|
page.call
"update_mycontent_picture_upload"
end
end
This will work sometimes on a first try when I try it through the
website. Any idea why it could be flakey.
I...
2006 Aug 03
1
RadRails install plugin problem
...ust comments like
below.
# Http:::::Sean.treadway.info::Svn::Plugins::RespondsToParent
Can anyone tell me how to install the plugin with all the files. The
link is below and i have tried putting the url in the plugin field to
install without success. I''m having the same problem for
responds_to_parent. Is their a specific way to install 3rd party
plugins?
http://svn.kylemaxwell.com/upload_reference_app/vendor/plugins/remote...
--
Posted via http://www.ruby-forum.com/.
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 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 (
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 =>
contacts_messages_path(contact), :method => :post, :html =>
{:multip...
2009 Feb 11
0
remote_form_for file_field strangeness
...iframe with the id and
name ''uploader''. However, when submitted via AJAX, it never
serializes the file_field: both the development log and firebug both
only show the hidden params being passed. It works fine as a
form_for, however.
I''m using 2.2.2 on OSX 10.5.6 and the responds_to_parent plugin to,
well, respond.
Thanks,
Todd
--~--~---------~--~----~------------~-------~--~----~
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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.or...
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 ru...
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: Talk" group.
To post to this group, send email to rubyonrails-talk-...
2010 Aug 18
0
paper clip plugin validation fails
...if not saved"
format.js # create.js.rjs
format.xml { render :xml => @image.errors, :status =>
:unprocessable_entity }
puts"hiiiiiiiiiiiiiiiiii"+@image.errors.inspect
end
#puts"check the srrors are"+@image.errors.inspect
responds_to_parent { render }
end
here is the model validation
validates_attachment_content_type :picture,
:content_type=>[''image/jpeg'', ''image/png'', ''image/gif''], :message =>
:missing_content_type
or
validates_format_of :pictu...
2007 Apr 17
0
rflickr: invalid auth token when uploading
...179:in
`upload_image''
Any insight into this error will be greatly appreciated.
Here is the action that gets executed on an upload request:
def upload
incoming_file = params[''flickr_image'']
content_type = incoming_file.content_type.chomp
msg_out = nil
responds_to_parent do
render :update do |page|
if content_type.rindex(/image\/[(jpe?g)||(gif)||(png)]/)
cache_file = "#{RAILS_ROOT}/public/cache/flickr.cache"
if File.exist? cache_file
flickr = Flickr.new(cache_file)
msg_out = flickr.photos.upload....
2008 Jul 21
2
using image with submit_to_remote
Hi
How can I give an image to submit_to_remote .I could successfully do
it with link_to_remote as below..But the same not working with
submit_to_remote
<%= link_to_remote( image_tag("/images/cancel.png", {:alt =>
''Cancel'', :class=>"noborder",:title=>"Cancel"}),
{:update => "search_contact_div",
:url
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:
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 Jul 20
6
replace_html + javascript
Hi all,
This is my first post to the list, so I hope it gets through and I
don''t do anything wrong :)
Here''s the issue I''m having...
I have an rjs that''s doing:
page.replace_html ''myid'', :partial => ''my_partial''
And in my my_partial I have:
<script type="text/javascript">