I have noticed that on IE, the @params[:commit] does not come through on image submit tags, but it does when the image is removed. this fails: <%= submit_tag( "Schedule", {:type => "image", :src=>"/images/buttons/schedulecard.gif", :alt=>"Schedule Card", :class=>"button"})%> but this works: <%= submit_tag( "Schedule", {:alt=>"Schedule Card", :class=>"button"})%> It seems as though the commit.x and commit.y will come through, is there a work around to have submit buttons show images here and still have the @params[:commit] come through when posting from IE? -- Regards, Ian Connor 349 Walden Street Concord, MA 01742 USA Direct Line: +1 (978) 6333372 Call Center Phone: +1 (714) 239 3875 (24 hrs) Mobile Phone: +1 (617) 201 6463 Fax: +1(770) 818 5697 Suisse Phone: +41 (0) 22 548 1664 Skype: ian.connor --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Chris Kampmeier
2007-Jun-24 00:55 UTC
Re: type image submit tags on IE dropping the params
Ian Connor wrote:> I have noticed that on IE, the @params[:commit] does not come through on > image submit tags, but it does when the image is removed. > > this fails: > <%= submit_tag( "Schedule", {:type => "image", > :src=>"/images/buttons/schedulecard.gif", :alt=>"Schedule Card", > :class=>"button"})%> > > but this works: > <%= submit_tag( "Schedule", {:alt=>"Schedule Card", :class=>"button"})%>Not really sure, but it looks like you''re using some old/deprecated stuff. What version of Rails are you on? Try image_submit_tag instead of submit_tag, and params instead of the old @params. Chris Kampmeier http://kampers.net -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thanks for the reply, it seems I was suffering this problem: http://sbrew.typepad.com/software/2005/12/two_image_submi.html On Jun 23, 8:55 pm, Chris Kampmeier <rails-mailing-l...-ARtvInVfO7ksV2N9l4h3zg@public.gmane.org> wrote:> Ian Connor wrote: > > I have noticed that on IE, the @params[:commit] does not come through on > > imagesubmittags, but it does when the image is removed. > > > this fails: > > <%= submit_tag( "Schedule", {:type => "image", > > :src=>"/images/buttons/schedulecard.gif", :alt=>"Schedule Card", > > :class=>"button"})%> > > > but this works: > > <%= submit_tag( "Schedule", {:alt=>"Schedule Card", :class=>"button"})%> > > Not really sure, but it looks like you''re using some old/deprecated > stuff. What version of Rails are you on? Try image_submit_tag instead of > submit_tag, and params instead of the old @params. > > Chris Kampmeierhttp://kampers.net > > -- > Posted viahttp://www.ruby-forum.com/.--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---