On Friday 18 November 2005 10:58 pm, John L. wrote:
I was wondering if there was any support a’la observe_field for capturing
arbitrary events and triggering an AJAX postback.
(A List Apart’s CMS is actually powered by Rails)
Rails leans towards beautiful rhtml, but the observe_field helper drops
separate presentation, behavioural, and structural layers on the browser
pop-up links article:
To apply this to rails, the prototype library gives you $(‘element_id’)
supplant the getElementById function used in the articles, and you can
place your triggers in an external JS file and link it in with a
in your layout and
<% content_for(“page_scripts”) do -%>
/* insert JS here */
<% end -%>
in your templates to customise events by controller/action.
Maybe examine the code generated by the observe_field helper and apply
List Apart goodness to it. Haven’t tried it personally, but am meaning
so in the near future… Any comments Mr Dan Benjamin?
Easy Schedule Management