Looking for sinatra ajax example

喜夏-厌秋 提交于 2019-12-06 02:16:01

问题


Sorry if this has been covered. Looking for a example of AJAX with Sinatra, specifically to get a partial and apply it to a tag in the DOM, from a javascript button handler. thx


回答1:


Check out these examples:

  • https://github.com/fcantelmi/sinatra_ajax/ (tiny example)
  • https://github.com/crguezl/sinatra-jquery-ajax/
  • http://ididitmyway.heroku.com/past/2011/2/27/ajax_in_sinatra/


来源:https://stackoverflow.com/questions/9120972/looking-for-sinatra-ajax-example

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!