Topic: application.js on :loading/:complete
Watch End Of Watch Online:loading and :complete parameters I need to be able to pass the id of
the div that I want to be affected. How do I do this?
Current effort:
In my view: Watch Dredd 3D Online
<%= form_remote_tag :url => { :action => 'reply' },
:loading => 'PostLoader.disableReplyForm(id)',
:complete => 'PostLoader.enableReplyForm(id)',
:html => { :id => id.to_s + '-reply-form' } %>
<%= image_tag 'ajax-loader-light.gif', :id => @id.to_s +
'-form-indicator', :style => 'display:none;' %>
and in my application.js:
disableReplyForm: function(id) {
Element.show(id + '-form-indicator');
Form.disable(id + '-reply-form');
},
enableReplyForm: function(id) {
Element.hide(id + '-form-indicator');
Form.enable(id + '-reply-form');
},Watch House At The End Of The Street Online
The names of the elements are generated fine (e.g. 14-reply-form), but
I can't seem to figure out the way that rails wants me to pass in the
value for the variable