Forum: Ruby on Rails Hover effect for column data field...

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
C42c706fab23da0b6d3cd2cfbb8db27d?d=identicon&s=25 Salil Gaikwad (salil)
on 2009-03-09 06:35
Hi All
 i have a table column field which is of 50 characters i am showing only
10 out of it so that my layout remain proper. what i want is when i
hover on that field  it should show me all the content of that field AT
THE SAME ROW.So when i hover on a that column field it should show me
all the field data on the same row. I don't want to use title parameter
of HTML.

I don't know where to post this topic? in rails is there any way to do
it?
or i have to implement it only using javascript and css.

Ragers,

Salil
80e4cb97cae5c8d745f72337d93fd8f2?d=identicon&s=25 MaD (Guest)
on 2009-03-09 08:28
(Received via mailing list)
you'll want to do this client-side to have no client/server-
communication and thus instant loading of your content. rails ships
with prototype, but it's still javascript. so, to answer your
question: use javascript and css. add an observer for mouseover and
then do whatever is necessary (i.e. change div-overflow or z-
index,...).
Ea52242ae25d195415cd9ef31db72aeb?d=identicon&s=25 Felix (Guest)
on 2009-03-09 13:21
(Received via mailing list)
You might find this helpful:
http://tracesof.blogspot.com/2009/02/creating-tool....
Using this code you can wrap the content of your table fields in a
"with_tooltip" block, which should give you the desired results.
There are plenty of other resources on the same topic to be found on
the web of course ..
This topic is locked and can not be replied to.