【发布时间】:2010-02-03 21:14:39
【问题描述】:
我目前正在为 rails 使用 facebox_render 插件,并试图让它在没有 jquery 的情况下工作(因此使用原型)。我有 99% 的功能,但有一条线我遇到了困难。
我将如何使用原型编写以下内容?
link_to_function(name, "jQuery.facebox(function(){ #{remote_function(options)} })", html_options || options.delete(:html))
我不熟悉原型,所以很可能有一个非常简单的解决方案:P
正是 jQuery.facebox(function() ... ) 位让我感到悲伤。
【问题讨论】:
标签: jquery ruby-on-rails prototypejs facebox