Forum: Ruby on Rails RE: Hotlinking an entire row in an HTML table

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.
D105b980e30e1b77fc761b1cd1b2de32?d=identicon&s=25 unknown (Guest)
on 2006-01-17 01:27
(Received via mailing list)
Dave Davidson wrote:
> Any insights into the best way of doing this?  I'm thinking it would
> be a JS solution, but I'm not really familiar enough with it to know
> which angle to attack it from.

Hi Dave,

I solved this by adding the following to every <td> in the row:

<td onMouseOver="this.style.cursor='pointer'"
onClick="window.location='show/<%= foobar[:id] %>'">

Maybe there is a way to make the javascript act on the <tr>, but I
wasn't able to find it easily. Adding this to each <td> works just fine.

   Matt

--
Matt C. Wagner
Information Security Analyst

Network Intrusion Detection
Security Operations Center
Corporate Information Security
Wells Fargo Bank
B0e227ae419295321ca2aff4c27ad99d?d=identicon&s=25 Nic Werner (Guest)
on 2006-01-21 15:40
(Received via mailing list)
To hijack this thread a little, how do you make it so the popup
windows sends information back to the main window? Like clicking a
link could bring up a specific search popup, user clicks results and
those results go back to the main?

- Nic.


On 1/16/06, Matt.C.Wagner@wellsfargo.com <Matt.C.Wagner@wellsfargo.com>
wrote:
> onClick="window.location='show/<%= foobar[:id] %>'">
> Network Intrusion Detection
> Security Operations Center
> Corporate Information Security
> Wells Fargo Bank
>
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>


--
- Nic
4bd34a2216dc8bdbf1f017f64e4d59e8?d=identicon&s=25 Kyle Maxwell (Guest)
on 2006-01-21 15:40
(Received via mailing list)
On 1/16/06, Nic Werner <nicwerner@gmail.com> wrote:
> > > Any insights into the best way of doing this?  I'm thinking it would
> > Maybe there is a way to make the javascript act on the <tr>, but I
> > Corporate Information Security
> - Nic
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>

This looks like a job for Behaviour:

 http://bennolan.com/behaviour/

--
Kyle Maxwell
Chief Technologist
E Factor Media // FN Interactive
kyle@efactormedia.com
1-866-263-3261
This topic is locked and can not be replied to.