Still learning some stuff so forgive the newbie type questions.

1. if i use the :update param on form_for_remote can I mix javascript
and ruby? i want to use the selector offered by prototype but pass in
the parameters from a ruby expression

<% form_remote_for(userdrug, :loading => "$('XXXX').show();" + "alert
('hi');" do |f| %>

I would basically like in where XXXX is to have an ruby expression
like object.id

2. Can you use RJS commands for  :loading ? seems like not :(

3. for the button:

<%= f.submit "Update", :disable_with => "Please wait..." %>

I would like it to be disabled until the request ir returned however
using the above only disables it momentrily whil it is sending the
request and then it can be pressed again even before the sever
responds.

Thanks!
--~--~---------~--~----~------------~-------~--~----~
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to