# How to Build a PopUp Menu

**URL:** <https://www.ruby-forum.com/t/how-to-build-a-popup-menu/139724>\
**Category:** Rails\
**Created:** [June 6, 2008, 12:54pm UTC](https://www.ruby-forum.com/t/how-to-build-a-popup-menu/139724 "2008-06-06T12:54:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![baberjaved](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/a6a055/32.png) [@baberjaved](https://www.ruby-forum.com/u/baberjaved)\
**Post date:** [June 6, 2008, 12:54pm UTC](https://www.ruby-forum.com/t/how-to-build-a-popup-menu/139724/1 "2008-06-06T12:54:29Z")

</div>

I want to make a table with clickable columns (better if they can also  
be highlighted) which when clicked opens up a pop up menu which contains  
a form something like the Google Calender if anyone has seen it…  
Can anyone give me directions how to go about doing this? Would I be  
needing both Javascript and Ajax along with RoR or is it just possible  
with Ajax n RoR?

---

<div class="post-metadata">

**Author:** ![baberjaved](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/a6a055/32.png) [@baberjaved](https://www.ruby-forum.com/u/baberjaved)\
**Post date:** [June 6, 2008, 8:42pm UTC](https://www.ruby-forum.com/t/how-to-build-a-popup-menu/139724/2 "2008-06-06T20:42:07Z")

</div>

Baber J. wrote:

> I want to make a table with clickable columns (better if they can also  
> be highlighted) which when clicked opens up a pop up menu which contains  
> a form something like the Google Calender if anyone has seen it…  
> Can anyone give me directions how to go about doing this? Would I be  
> needing both Javascript and Ajax along with RoR or is it just possible  
> with Ajax n RoR?

the substruct project has something of a popup when you click on ‘add to  
cart’ – might be a good example.  
Basically when you click on it you want to open up either a hidden div  
or an iframe.  
-R

---

<div class="post-metadata">

**Author:** ![baberjaved](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/a6a055/32.png) [@baberjaved](https://www.ruby-forum.com/u/baberjaved)\
**Post date:** [June 6, 2008, 9:28pm UTC](https://www.ruby-forum.com/t/how-to-build-a-popup-menu/139724/3 "2008-06-06T21:28:38Z")

</div>

Maybe you could use modal controls, like lightboxes, see the examples  
here

[http://livepipe.net/projects/control\_modal/](http://livepipe.net/projects/control_modal/)

There are examples with ajax calls and iframes, and the best of all is  
that is using prototype.

On Jun 6, 4:54 am, Baber J. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
