# Redbox basic implementation question

**URL:** <https://www.ruby-forum.com/t/redbox-basic-implementation-question/161929>\
**Category:** Rails\
**Created:** [March 3, 2009, 11:20pm UTC](https://www.ruby-forum.com/t/redbox-basic-implementation-question/161929 "2009-03-03T23:20:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bigdaddy71](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bbe5ce/32.png) [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Post date:** [March 3, 2009, 11:20pm UTC](https://www.ruby-forum.com/t/redbox-basic-implementation-question/161929/1 "2009-03-03T23:20:15Z")

</div>

When I produce a modal pop up it jams to the top of the page. Also  
when I insert data it also goes to the top of the page. Any ideas?

---

<div class="post-metadata">

**Author:** ![bigdaddy71](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bbe5ce/32.png) [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Post date:** [March 4, 2009, 5:20am UTC](https://www.ruby-forum.com/t/redbox-basic-implementation-question/161929/2 "2009-03-04T05:20:43Z")

</div>

Anybody?

---

<div class="post-metadata">

**Author:** ![bigdaddy71](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/bbe5ce/32.png) [@bigdaddy71](https://www.ruby-forum.com/u/bigdaddy71)\
**Post date:** [March 6, 2009, 9:26am UTC](https://www.ruby-forum.com/t/redbox-basic-implementation-question/161929/3 "2009-03-06T09:26:24Z")

</div>

Have a look at

[http://groups.google.com/group/rubyonrails-talk/browse\_thread/thread/f08f412c04e20ed1/d9f22348d07245f5?lnk=gst&q=++Open+a+(redbox)+modal+popup+from+inside+a+controller%3F++#d9f22348d07245f5](http://groups.google.com/group/rubyonrails-talk/browse_thread/thread/f08f412c04e20ed1/d9f22348d07245f5?lnk=gst&q=++Open+a+(redbox)+modal+popup+from+inside+a+controller%3F++#d9f22348d07245f5)

This was a quickfix, I haven’t gone to great lengths to investigate  
the js code, but the change I made has worked ok for me with firefox  
at least (it has to go in the redbox.js in the public folder).

You may want to look into the code in a bit more depth if you may be  
supporting other browsers.

Tonypm
