Multiple Loading events in form_remote_for

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
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails

On 8/3/06, Nathan P. Verni [email protected] 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’)”

On Aug 3, 2006, at 2:51 PM, Nathan P. Verni wrote:

Thanks!


Rails mailing list
[email protected]
http://lists.rubyonrails.org/mailman/listinfo/rails

You can’t do it with two :loading elements but you can do this:

:loading => “Element.show(‘form-indicator’); Element.hide(btn-submit’);”

Cheers-
-Ezra

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs