This is more of a Rails question than a Haml question, isn't it? Does it have anything specific to do with Haml?
On Wed, Mar 10, 2010 at 7:09 PM, Liberty1776 <[email protected]> wrote: > Hi, > > I'm using standard Rails form builder form_for and haml. > I'm trying to replace standard Rails submit button with an image. > In addition Javascript runs on submit event. > How can I replace this by link_to image_tag? > -------- > remote_form_for(@message, :html => {:onsubmit => "jQuery(<code>)"}) > do |f| > = f.error_messages > %table > - #... regular form fields with some more indentation ... > = f.submit 'Send It' > > -# I thought this might work, but onsubmit event is not > firing. > = link_to image_tag('message_send.png'), :action => > 'create', :method => :post, :id => @message > > -------- > > Would really appreciate your help. > > Thank you, > Michael > > -- > You received this message because you are subscribed to the Google Groups > "Haml" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected] <haml%[email protected]>. > For more options, visit this group at > http://groups.google.com/group/haml?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Haml" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/haml?hl=en.
