# Integration with movtable

**URL:** <https://www.ruby-forum.com/t/integration-with-movtable/103407>\
**Category:** Rails\
**Created:** [May 5, 2007, 3:17pm UTC](https://www.ruby-forum.com/t/integration-with-movtable/103407 "2007-05-05T15:17:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kturner](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/k/c2a13f/32.png) [@kturner](https://www.ruby-forum.com/u/kturner)\
**Post date:** [May 5, 2007, 3:17pm UTC](https://www.ruby-forum.com/t/integration-with-movtable/103407/1 "2007-05-05T15:17:31Z")

</div>

Hi,

I’m trying to integrate movtable to display some data. The file that  
lists out the partials to display the data looks like this:

 Movtable - List \<%= stylesheet\_link\_tag 'movtable' %\> \<%= sort\_generateJS %\> \<%= render\_partial '../../lib/movtable/table' %\> \<%= render\_partial '../../lib/movtable/navigation' %\> \<%= render\_partial '../../lib/movtable/filter' %\> 

I want to use my own application.rhtml layout, but leaving this code  
as-is replaces all of my standard layout code. When I just use the  
render\_partial code it displays the data, but I also need to have the  
onload, onmousemove, and onmouseup function calls for full  
functionality.

I don’t want to have the onload/onmousemove/onmouseup code handlers  
running for every single view on my site (or I would add these event  
handlers to application.rhtml), so I need a way to properly load the  
event handlers only when this view is needed.

Any thoughts? Thanks in advance.
