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: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060803/edb92fda/attachment.html
frank@mazzacano.com
2006-Aug-03 22:14 UTC
[Rails] Multiple Loading events in form_remote_for
Just put them both in the same set of double quotes, seperated by a comma. Frank Lobbr.com -----Original Message----- From: "Nathan P. Verni" <nverni@blenderbox.com> Subj: [Rails] Multiple Loading events in form_remote_for Date: Thu Aug 3, 2006 3:51 pm Size: 2K To: <Rails@lists.rubyonrails.org> 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! --- message truncated ---
On 8/3/06, Nathan P. Verni <nverni@blenderbox.com> wrote:> 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'')Yes. :loading => "Element.show(''form-indicator''); Element.hide(''btn-submit'')" -- Greg Donald http://destiney.com/
frank@mazzacano.com
2006-Aug-03 22:15 UTC
[Rails] Multiple Loading events in form_remote_for
Sorry for the lack of detail. It can look like this: :loading => "Element.show(''form-indicator''), Element.hide(btn-submit'')'''' -----Original Message----- From: "Nathan P. Verni" <nverni@blenderbox.com> Subj: [Rails] Multiple Loading events in form_remote_for Date: Thu Aug 3, 2006 3:51 pm Size: 2K To: <Rails@lists.rubyonrails.org> Is it possible to have multiple loading events in the params for form_remote_for? I?d like to do this"Element.show(''form-indicator'') and this :loading => "Element.hide(btn-submit'') Thanks! --- message truncated ---
Skipped content of type multipart/alternative-------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 2435 bytes Desc: not available Url : http://wrath.rubyonrails.org/pipermail/rails/attachments/20060803/12535c6a/smime.bin
Ezra Zygmuntowicz
2006-Aug-03 23:06 UTC
[Rails] Multiple Loading events in form_remote_for
On Aug 3, 2006, at 2:51 PM, Nathan P. Verni wrote:> 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! > > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/railsYou can''t do it with two :loading elements but you can do this: :loading => "Element.show(''form-indicator''); Element.hide(btn-submit'');" Cheers- -Ezra -------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060803/62c09bc4/attachment.html