ruby on rails - jquery to prototype format question -


I am currently using the facebox_render plugin for Rails, and I'm trying to work without jquery (hence using prototype). I found it 99% functional, but there is a line in which I have difficulty.

How do I use the following prototype?

  link_to_function (name, "JQuery.facebox (function () {# {remote_function (options)}})", html_options || options.delete (: html))  < / Pre> 

I am not familiar with the prototype, then it is likely that there is actually a simple solution: p

this jQuery.facebox (function ...) Bit that is causing me sorrow.

is a plugin that depends on. That is, it depends on the loading of jQuery work. To use Facebox, you have to load jQuery.

Try using Facebox prototype JS port, see:


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -