Hi I am using classic form_for to upload pictures using ajax. <% form_for(:images, :url => formatted_images_path(:format => ''js''), :html => { :multipart => true, :target => ''upload_frame'' }) do |f| %> Is there a way to catch the complete action? I would like to use lightbox to show and crop the image in iframe. thank you. Petr -- Posted via 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Can you use form_remote_for? On Feb 5, 11:17 am, Petan Cert <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Hi I am using classic form_for to upload pictures using ajax. > > <% form_for(:images, :url => formatted_images_path(:format => ''js''), > :html => { :multipart => true, :target => ''upload_frame'' }) do |f| %> > > Is there a way to catch the complete action? I would like to use > lightbox to show and crop the image in iframe. > > thank you. > Petr > -- > Posted viahttp://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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Hi, that is the trouble, the upload is not working with remote_form_for. Cheers, Petr Daly wrote:> Can you use form_remote_for? > > On Feb 5, 11:17�am, Petan Cert <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org>-- Posted via 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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I used this about a year ago and it worked fine khamsouk.souvanlasy.com/2007/5/1/ajax-file-uploads-in-rails-using-attachment_fu-and-responds_to_parent. Not sure if it still works with current versions of Rails. In my latest app, I used swfupload to provide multiple file uploads with a progress bar. There are better alternatives if you are using apache and passenger. On Feb 5, 11:41 am, Petan Cert <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Hi, > > that is the trouble, the upload is not working with remote_form_for. > > Cheers, > Petr > > Daly wrote: > > Can you use form_remote_for? > > > On Feb 5, 11:17 am, Petan Cert <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > > -- > Posted viahttp://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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
I already used responds_to_parent successfully. What are the better alternatives if we use Apache and Passenger? On Thu, Feb 5, 2009 at 3:11 PM, Daly <aeldaly-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> > I used this about a year ago and it worked fine > > khamsouk.souvanlasy.com/2007/5/1/ajax-file-uploads-in-rails-using-attachment_fu-and-responds_to_parent > . > Not sure if it still works with current versions of Rails. > > In my latest app, I used swfupload to provide multiple file uploads > with a progress bar. There are better alternatives if you are using > apache and passenger. > > On Feb 5, 11:41 am, Petan Cert <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > wrote: > > Hi, > > > > that is the trouble, the upload is not working with remote_form_for. > > > > Cheers, > > Petr > > > > Daly wrote: > > > Can you use form_remote_for? > > > > > On Feb 5, 11:17 am, Petan Cert <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > > > > -- > > Posted viahttp://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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Sorry about the delay: I found a nice tutorial here: railsillustrated.com/screencast-file-uploads-progress-in-rails-passenger.html On Feb 5, 12:37 pm, Mathieu Rousseau <mathieu.rousseau...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> I already used responds_to_parent successfully. > > What are the better alternatives if we use Apache and Passenger? > > On Thu, Feb 5, 2009 at 3:11 PM, Daly <aeld...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > > I used this about a year ago and it worked fine > > >khamsouk.souvanlasy.com/2007/5/1/ajax-file-uploads-in-rails-us... > > . > > Not sure if it still works with current versions of Rails. > > > In my latest app, I used swfupload to provide multiple file uploads > > with a progress bar. There are better alternatives if you are using > > apache and passenger. > > > On Feb 5, 11:41 am, Petan Cert <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > > wrote: > > > Hi, > > > > that is the trouble, the upload is not working with remote_form_for. > > > > Cheers, > > > Petr > > > > Daly wrote: > > > > Can you use form_remote_for? > > > > > On Feb 5, 11:17 am, Petan Cert <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> > > > > -- > > > Posted viahttp://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 rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com For more options, visit this group at groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---