Dhtml tooltip effect feds away after sorting data in table

hello friends,

i am using tooltip.js library in my rails application to implement
tooltip effect on table data.
my table contains column ‘project’. but when i sort the contents of the
column ‘project’ using sort_key => column name i.e project, the
onmouseover (tooltip)effect feds away.when i refresh the browser, the
mouseover effect again continues.

i have used content tag for the same.
content_tag(‘table’, content_tag(‘tr’,
content_tag(‘td’,content_tag(‘p’,"#{project_name}"),
:onMousemove=>“ddrivetip(’#{value}’)”, :onMouseout=>“hideddrivetip()”)))

Is it a javascript loading problem…!!!

does anyone hv any suggestions for this. m in hurry.