ihower / facebox_render Goto Github PK
View Code? Open in Web Editor NEWFaceboxRender is a Rails plugin let you use lightbox seamlessly using Facebox library (http://famspam.com/facebox/)
FaceboxRender is a Rails plugin let you use lightbox seamlessly using Facebox library (http://famspam.com/facebox/)
def facebook_link_to should initialize html_options to a hash, not nil, to avoid nil error:
def facebox_link_to(name, options = {}, html_options = {})
link_to_function(name, "jQuery.facebox(function(){ jQuery.ajax({data:'authenticity_token=' + encodeURIComponent('#{options[:authenticity_token]}'), dataType:'script', type:'#{options[:method]}', url:'#{options[:url]}'})})", html_options)
end
The plugin is great! It seems to be everything ok but it's throwing an error
"a.H is undefined
[Break on this error] a("#facebox .body").n().p("normal");a(...facebox .content").w().g("content"); ".
I am using jquery 1.4.2.
This does not work, shows "symbol to string" error:
<%= facebox_link_to 'Posts', posts_path %>
Plugin only works if link is specified using the old method:
<%= facebox_link_to 'Posts', :url => {:controller => 'posts', :action => 'index'} %>
Source:
http://stackoverflow.com/questions/3310682/facebox-and-rails-not-working
Hi, I got it working for a regular page and then I created a restful route. For some reason, it appears to be having problem. Firebug is seeing it trying to load the right URL which does load, however, within Facebox.....
405 Method Not Allowed
ActionController::MethodNotAllowed
Only get requests are allowed.
I had to include prototype in addition to the jquery download to get it to run...but how do I get the graphical elements and the background to show.
The div tag shows and the css file shows as well, but not loading....
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.