# how to create a simple DHTML dialog

**URL:** <https://discuss.rubyonrails.org/t/how-to-create-a-simple-dhtml-dialog/13717>\
**Category:** rubyonrails-talk\
**Created:** [May 30, 2007, 2:36pm UTC](https://discuss.rubyonrails.org/t/how-to-create-a-simple-dhtml-dialog/13717 "2007-05-30T14:36:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sbeam](https://avatars.discourse-cdn.com/v4/letter/s/258eb7/32.png) [@sbeam](https://discuss.rubyonrails.org/u/sbeam)\
**Post date:** [May 30, 2007, 2:36pm UTC](https://discuss.rubyonrails.org/t/how-to-create-a-simple-dhtml-dialog/13717/1 "2007-05-30T14:36:49Z")

</div>

I am looking to create a simple dialog window like this on a page:

[http://developer.yahoo.com/yui/examples/container/simpledialog/2.html](http://developer.yahoo.com/yui/examples/container/simpledialog/2.html)

I know scriptaculous comes with Rails, not YUI, but I can't find anything similar there. Is there any shortcut to doing this with existing plugins or core stuff?, or must I download another toolkit?

thanks Sam

---

<div class="post-metadata">

**Author:** ![James\_Brooks](https://avatars.discourse-cdn.com/v4/letter/j/a5b964/32.png) [@James\_Brooks](https://discuss.rubyonrails.org/u/James_Brooks)\
**Post date:** [May 30, 2007, 2:40pm UTC](https://discuss.rubyonrails.org/t/how-to-create-a-simple-dhtml-dialog/13717/2 "2007-05-30T14:40:05Z")

</div>

Hi,

You could have a look at lightbox variants, I haven’t had too in-depth a look though I’ve worked on a project using lightbox in rails and it worked rather nicely.[http://swik.net/Rails+lightbox](http://swik.net/Rails+lightbox)

Cheers, James

---

<div class="post-metadata">

**Author:** ![Alain\_Ravet](https://avatars.discourse-cdn.com/v4/letter/a/df788c/32.png) [@Alain\_Ravet](https://discuss.rubyonrails.org/u/Alain_Ravet)\
**Post date:** [May 30, 2007, 2:55pm UTC](https://discuss.rubyonrails.org/t/how-to-create-a-simple-dhtml-dialog/13717/3 "2007-05-30T14:55:52Z")

</div>

Sam,

&nbsp;&nbsp;\> I am looking to create a simple dialog window like this on a page: &nbsp;&nbsp;\> [http://developer.yahoo.com/yui/examples/container/simpledialog/2.html](http://developer.yahoo.com/yui/examples/container/simpledialog/2.html)

This library is actively maintained:

&nbsp;&nbsp;&nbsp;[http://prototype-window.xilinus.com](http://prototype-window.xilinus.com) &nbsp;&nbsp;&nbsp;[http://prototype-window.xilinus.com/samples.html](http://prototype-window.xilinus.com/samples.html)

Its theming options let you tube the way it looks like : &nbsp;&nbsp;&nbsp;[http://prototype-window.xilinus.com/themes.html](http://prototype-window.xilinus.com/themes.html)

&nbsp;&nbsp;\> I know scriptaculous comes with Rails, ...

For javascript and prototype in Rails questions, there is another list :

&nbsp;&nbsp;&nbsp;[http://groups.google.com/group/rubyonrails-spinoffs](http://groups.google.com/group/rubyonrails-spinoffs)

---

<div class="post-metadata">

**Author:** ![sbeam](https://avatars.discourse-cdn.com/v4/letter/s/258eb7/32.png) [@sbeam](https://discuss.rubyonrails.org/u/sbeam)\
**Post date:** [May 30, 2007, 4:17pm UTC](https://discuss.rubyonrails.org/t/how-to-create-a-simple-dhtml-dialog/13717/4 "2007-05-30T16:17:24Z")

</div>

Thanks - it actually didn't have to be modal (just a pop-up help/hint) so I ended up just using Effect.Appear and Effect.Fade (which were already available) on a custom DIV. Should suffice for now...

Regards, Sam

> Hi,
> 
> You could have a look at lightbox variants, I haven't had too in-depth

a

> look though I've worked on a project using lightbox in rails and it

worked

> rather nicely. [Home - Swik](http://swik.net/Rails+lightbox)
> 
> Cheers, &nbsp;&nbsp;James
> 
> \> \> \> I am looking to create a simple dialog window like this on a page: \> \>

[http://developer.yahoo.com/yui/examples/container/simpledialog/2.html](http://developer.yahoo.com/yui/examples/container/simpledialog/2.html)
