Hello, Is it possible to use the acts_as_attachment plugin with a remote_form ? because when i try to use it i don''t get the file parameter. When i use it without ajax it works perfectly. thnx in advance Daan Poron -- 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 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 http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
On 10/1/06, Daan Poron <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> > Hello, > > Is it possible to use the acts_as_attachment plugin with a remote_form ? > because when i try to use it i don''t get the file parameter. When i use > it without ajax it works perfectly. > > thnx in advance > Daan PoronJavascript doesn''t have access to your files, so it''s not really anything with the plugin. You can, however, upload to a hidden iframe. It''s very hackish, though. -- Rick Olson http://weblog.techno-weenie.net http://mephistoblog.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 http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Rick Olson wrote:> On 10/1/06, Daan Poron <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: >> >> Hello, >> >> Is it possible to use the acts_as_attachment plugin with a remote_form ? >> because when i try to use it i don''t get the file parameter. When i use >> it without ajax it works perfectly. >> >> thnx in advance >> Daan Poron > > Javascript doesn''t have access to your files, so it''s not really > anything with the plugin. You can, however, upload to a hidden > iframe. It''s very hackish, though. > > > -- > Rick Olson > http://weblog.techno-weenie.net > http://mephistoblog.comis it possible to link to an rjs file with a regular form ? or can i do some ajax commands in the iframe ? gr Daan Poron -- 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 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 http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
On Oct 1, 2006, at 11:45 AM, Daan Poron wrote:> > Rick Olson wrote: >> On 10/1/06, Daan Poron <rails-mailing-list-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote: >>> >>> Hello, >>> >>> Is it possible to use the acts_as_attachment plugin with a >>> remote_form ? >>> because when i try to use it i don''t get the file parameter. When >>> i use >>> it without ajax it works perfectly. >>> >>> thnx in advance >>> Daan Poron >> >> Javascript doesn''t have access to your files, so it''s not really >> anything with the plugin. You can, however, upload to a hidden >> iframe. It''s very hackish, though. >> >> >> -- >> Rick Olson >> http://weblog.techno-weenie.net >> http://mephistoblog.com > > is it possible to link to an rjs file with a regular form ? or can > i do > some ajax commands in the iframe ? > > gr > Daan PoronHey Daan- There is a plugin called respond_to_parent that will allow you to return rjs to the iframe and have it eval''ed in the parent window. http://sean.treadway.info/svn/plugins/responds_to_parent/README -Ezra --~--~---------~--~----~------------~-------~--~----~ 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 http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
Ezra Zygmuntowicz wrote:> On Oct 1, 2006, at 11:45 AM, Daan Poron wrote: > >>>> it without ajax it works perfectly. >>> Rick Olson >>> http://weblog.techno-weenie.net >>> http://mephistoblog.com >> >> is it possible to link to an rjs file with a regular form ? or can >> i do >> some ajax commands in the iframe ? >> >> gr >> Daan Poron > > Hey Daan- > > There is a plugin called respond_to_parent that will allow you to > return rjs to the iframe and have it eval''ed in the parent window. > > http://sean.treadway.info/svn/plugins/responds_to_parent/README > > -Ezrathnx :p it works great :) but now i''m having another problem with act as attachment ... when i generate my thumbnails they aren''t saved on my filesystm only in my db grts Daan Poron -- 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 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 http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
does anybody know how to install the dang thing? http://weblog.techno-weenie.net/articles/acts_as_attachment I got as far as this: rake test_plugins PLUGIN=acts_as_attachement (in /x/home/foobar/docs/thefoobar.com/thefoobar) /usr/bin/ruby18 -Ilib:test "/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader.rb" real helpful instructions there buddy :p I manually create the tables, but still no luck. http://weblog.techno-weenie.net/articles/acts_as_attachment --~--~---------~--~----~------------~-------~--~----~ 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 http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---
> rake test_plugins PLUGIN=acts_as_attachement > (in /x/home/foobar/docs/thefoobar.com/thefoobar) > /usr/bin/ruby18 -Ilib:test > "/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader.rb"real helpful stack trace there buddy. -- Rick Olson http://weblog.techno-weenie.net http://mephistoblog.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 http://groups.google.com/group/rubyonrails-talk -~----------~----~----~----~------~----~------~--~---