Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

facebox-render

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

facebox-render

  • 0.9.9
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

= 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

== 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[:template], options[:layout], options[:action], options[:partial] or options[:html] string. Passing options[:msg] 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: http://www.opensource.org/licenses/mit-license.php

FAQs

Package last updated on 28 May 2010

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc