Michael C. wrote:
I don’t have Rails installed at the moment, I’d like to check myself,
but it’s just a simple curiosity.
Install Rails, Firefox, & Firebug, and try it.
observe_field fits into replacement tags <%= %>, which caught my
field and should not stick anything into HTML. Is <%= merely used as an
enabling method, or will there actually be some sort of HTML object
When I use a <%= form_remote_for … %>, and when I run my site in
point my mouse to the form, and get the “Context Menu” (the “right”
button), Firebug has a feature “inspect element”. This shows the form in
panel of my browser, like this:
Prototype.js (or Scriptaculous?) method Ajax.Request. And that hides all
ugly magic required to send the ajax commands to my controller ‘ring’,
The observe_field stuff must work the same general way - a Rails method,
Also, does the observer have to come after the field it is observing or
can I stick them all at the top of the HTML?
Put them near their observers, so they are clear to read.
“Test Driven Ajax (on Rails)”