# What is the preferred "lightbox" plugin?

**URL:** <https://discuss.rubyonrails.org/t/what-is-the-preferred-lightbox-plugin/36483>\
**Category:** rubyonrails-talk\
**Created:** [November 18, 2008, 9:04pm UTC](https://discuss.rubyonrails.org/t/what-is-the-preferred-lightbox-plugin/36483 "2008-11-18T21:04:49Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Philip\_Hallstrom](https://avatars.discourse-cdn.com/v4/letter/p/bbe5ce/32.png) [@Philip\_Hallstrom](https://discuss.rubyonrails.org/u/Philip_Hallstrom)\
**Post date:** [November 18, 2008, 9:04pm UTC](https://discuss.rubyonrails.org/t/what-is-the-preferred-lightbox-plugin/36483/1 "2008-11-18T21:04:49Z")

</div>

Hi all -

I need to do an overlay with something that supports ajax/remote html. There's lots of options and quite a few rails plugins. Some seem out of date however.

Any suggestions on which one is "best" where "best" is defined as easy to implement, works in all browsers, supports ajax or remote html.

Thanks!

-philip

---

<div class="post-metadata">

**Author:** ![Bill\_Walton](https://avatars.discourse-cdn.com/v4/letter/b/f07891/32.png) [@Bill\_Walton](https://discuss.rubyonrails.org/u/Bill_Walton)\
**Post date:** [November 18, 2008, 10:24pm UTC](https://discuss.rubyonrails.org/t/what-is-the-preferred-lightbox-plugin/36483/2 "2008-11-18T22:24:17Z")

</div>

Hi Philip,

Philip Hallstrom wrote:

> I need to do an overlay with something that supports ajax/remote html. There's lots of options and quite a few rails plugins. Some seem out of date however.
> 
> Any suggestions on which one is "best" where "best" is defined as easy to implement, works in all browsers, supports ajax or remote html.

I'm in the same boat. I've been in touch with Craig Ambrose and let him know there were some 'problems' with Redbox. I'm hopeful he'll whip out something real quick ;-). Seriously though... I've got Redbox working except for the automatic positioning. There seems to be some code missing. I specifically queried Craig about that. In the meantime, I've been working today on getting the positioning working. If you're intersted, I could send you what I come up with. I'll warn you, though... JS is \_not\_ one of my strengths 😉

Best regards, Bill

---

<div class="post-metadata">

**Author:** ![Freddy\_Andersen](https://avatars.discourse-cdn.com/v4/letter/f/ecae2f/32.png) [@Freddy\_Andersen](https://discuss.rubyonrails.org/u/Freddy_Andersen)\
**Post date:** [November 18, 2008, 10:28pm UTC](https://discuss.rubyonrails.org/t/what-is-the-preferred-lightbox-plugin/36483/3 "2008-11-18T22:28:42Z")

</div>

If you are willing to use JQuery then [http://handlino.com/blog/2008/02/26/57/](http://handlino.com/blog/2008/02/26/57/) is a good plugin. I'm on 2.1 and 2.2 for the projects where I'm using this plugin.

I installed jrails and replaced prototype completely..

---

<div class="post-metadata">

**Author:** ![Philip\_Hallstrom](https://avatars.discourse-cdn.com/v4/letter/p/bbe5ce/32.png) [@Philip\_Hallstrom](https://discuss.rubyonrails.org/u/Philip_Hallstrom)\
**Post date:** [November 18, 2008, 10:54pm UTC](https://discuss.rubyonrails.org/t/what-is-the-preferred-lightbox-plugin/36483/4 "2008-11-18T22:54:32Z")

</div>

> I need to do an overlay with something that supports ajax/remote html. There's lots of options and quite a few rails plugins. Some seem out of date however.
> 
> Any suggestions on which one is "best" where "best" is defined as easy to implement, works in all browsers, supports ajax or remote html.

Thanks to those that replied... I should have clarified no-jquery. I love jquery, but the site uses a lot of Prototype and I'd rather not double up on JS libraries.

I found one and got it working. Seems to do the right thing 🙂

[http://code.google.com/p/rb-lightbox-plugin/](http://code.google.com/p/rb-lightbox-plugin/)

Not too much of a pain to implement either. centers, works in IE/Firefox.

There do seem to be a lot more jquery based ones. Will have to go that route right off the bat next time 🙂

-philip

---

<div class="post-metadata">

**Author:** ![Bob\_O3](https://avatars.discourse-cdn.com/v4/letter/b/9de0a6/32.png) [@Bob\_O3](https://discuss.rubyonrails.org/u/Bob_O3)\
**Post date:** [November 19, 2008, 3:15pm UTC](https://discuss.rubyonrails.org/t/what-is-the-preferred-lightbox-plugin/36483/5 "2008-11-19T15:15:58Z")

</div>

Ive been using this on my latest project and found it to be very stable, easy to style, easy to use..

[http://famspam.com/facebox](http://famspam.com/facebox)

Good Luck

---

<div class="post-metadata">

**Author:** ![Dave\_L](https://avatars.discourse-cdn.com/v4/letter/d/7feea3/32.png) [@Dave\_L](https://discuss.rubyonrails.org/u/Dave_L)\
**Post date:** [November 20, 2008, 11:25pm UTC](https://discuss.rubyonrails.org/t/what-is-the-preferred-lightbox-plugin/36483/6 "2008-11-20T23:25:09Z")

</div>

I have a site with a fair amount of prototype too, and am wondering about integrating jquery for only the login popup modal box. Isn't it possible to only load jquery for the login partial when someone clicks to login, so that I am not doubling up on JS libraries on other pages?
