0.02
No commit activity in last 3 years
No release in over 3 years
FaceboxRender is a Rails plugin let you use lightbox seamlessly using Facebox library (http://famspam.com/facebox/)
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies
 Project Readme

Description¶ ↑

FaceboxRender improved plugin let you use lightbox seamlessly using Facebox library.

Install¶ ↑

  • script/plugin install git://github.com/ihower/facebox_render.git (for Rails 2)

  • rails plugin install git://github.com/ihower/facebox_render.git (for Rails 3)

USAGE¶ ↑

Helper¶ ↑

  • facebox_link_to helper, it’s will launch loading facebox first, send ajax request second)

  • link_to_remote, form_remote_tag …etc Ajax helper. (for Rails 2)

  • link_to :remote => true, form_for :remote => true …etc Ajax helper (for Rails 3)

Don’t use <a href=“somelink” ref=“facebox”>

Controller¶ ↑

Add “include FaceboxRender” to your controller, or simply put it at /app/controllers/application.rb

Then in your action:

respond_to do |format|
  format.html
  format.js { render_to_facebox }
end

By Default render the html without layout, otherwise you can pass options, options, options, options or options string. Passing options will pulsate a message.

If block given, it will yield after facebox script, eg:

render_to_facebox do |page|
  page << "alert('test')"
end

Besides render_facebox, we have close_facebox, redirect_from_facebox.

respond_to do |format|
  format.html
  format.js { close_facebox }
end

Authors & Contributors¶ ↑

License¶ ↑

Licensed under the MIT: www.opensource.org/licenses/mit-license.php