Forum: Ruby on Rails RE: Where are the best AJAX examples?

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
B31c8f5031486fa50ec7ee9e1350dec9?d=identicon&s=25 Marcus Blankenship (Guest)
on 2006-06-02 20:19
(Received via mailing list)
Duane,

How about using remote_function?  The example seems to fit your
problem...

  <select id="options" onchange="<%= remote_function(:update =>
"options",
      :url => { :action => :update_options }) %>">
    <option value="0">Hello</option>
    <option value="1">World</option>
  </select>

Marcus
This topic is locked and can not be replied to.