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
link_to_function("click me","foo();return false") On 4/18/06, Bradley Mazurek <bradley.mazurek@gmail.com> wrote:> > 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 > _______________________________________________ > Rails mailing list > Rails@lists.rubyonrails.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060418/157d64b1/attachment.html
Sorry, got that wrong. i guess it could be: link_to_function("click","",{:onmousedown=>"foo()"}) On 4/18/06, Bogdan Ionescu <bogdan.ionescu@gmail.com> wrote:> > link_to_function("click me","foo();return false") > > > On 4/18/06, Bradley Mazurek <bradley.mazurek@gmail.com > wrote: > > > > 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 > > _______________________________________________ > > Rails mailing list > > Rails@lists.rubyonrails.org > > http://lists.rubyonrails.org/mailman/listinfo/rails > > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060418/ccd11a73/attachment.html