Rails: submit (via AJAX) when drop-down option clicked

后端 未结 5 2067
礼貌的吻别
礼貌的吻别 2021-02-04 10:14

What is the easiest and most graceful way to auto-submit an AJAX form when a drop-down box\'s option is selected? I\'m creating an administration page where the admin can modify

5条回答
  •  一向
    一向 (楼主)
    2021-02-04 11:05

    Learn how to do it without Rails using the framework of your choice. Using the Rails tags to perform AJAX can accomplish a task quickly, but can be very limiting when you need to change specific things about how the tag performs.

    Read about web-standards and how to write unobtrusive javascript on these sites: http://ajaxian.com/ http://www.alistapart.com/

    You'll be able to create more flexible, amazing UIs by learning how to perform AJAX without Rails.

提交回复
热议问题