Forum: Ruby on Rails link_to_function onmousedown

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.
6f94c45fd92acbb3e21c328f6b35298a?d=identicon&s=25 Bradley Mazurek (Guest)
on 2006-04-18 15:31
(Received via mailing list)
Hi,

Is there some way to produce an anchor that looks like the following
using helpers, or should I just code it in the rhtml like this?

  <a href="#" onmousedown="javascript:foo(); return false">

Thanks,
  Brad
--
Bradley Mazurek
531eb73f8fbf05a197721d02b4e6aadb?d=identicon&s=25 Bogdan Ionescu (Guest)
on 2006-04-18 18:22
(Received via mailing list)
link_to_function("click me","foo();return false")
531eb73f8fbf05a197721d02b4e6aadb?d=identicon&s=25 Bogdan Ionescu (Guest)
on 2006-04-18 18:25
(Received via mailing list)
Sorry, got that wrong.
i guess it could be:

link_to_function("click","",{:onmousedown=>"foo()"})
This topic is locked and can not be replied to.