In other words, file_field_tag, gets me a box with a button labeled (variously) browse... or choose file... depending on the browser. Is there any way to control that to be some other text, or where it''s placed relative to the box? Thanks! Pito -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Marnen Laibow-Koser
2010-Jan-26 19:33 UTC
Re: Anyway to change the button label for file upoading?
Pito Salas wrote:> In other words, file_field_tag, gets me a box with a button labeled > (variously) browse... or choose file... depending on the browser. Is > there any way to control that to be some other text, or where it''s > placed relative to the box?Not to my knowledge. If you look at the HTML, you''ll see that that text is not actually in there. It''s completely under the control of the browser, and is no more susceptible to user control than is the precise appearance of a checkbox.> > Thanks! > > PitoBest, -- Marnen Laibow-Koser http://www.marnen.org marnen-sbuyVjPbboAdnm+yROfE0A@public.gmane.org -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
No, and you wouldn''t want to change this anyways, even if you could. The browser controls the language for the user. So, each command iteration outputs the dialog into a translated piece. If you were able to change this, you would have to supply all of the localization for the user as well and provide output to all languages supported by the browser. It''s a similar issue that is present today in traditional GUI development. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Thanks for the info, both of you. I can now stop looking for the non-existent option :) -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Philip Hallstrom
2010-Jan-26 20:24 UTC
Re: Anyway to change the button label for file upoading?
> In other words, file_field_tag, gets me a box with a button labeled > (variously) browse... or choose file... depending on the browser. Is > there any way to control that to be some other text, or where it''s > placed relative to the box?You can''t. You can however overlay the entire field with a graphic and then use some JS trickery to pass through clicks to the field underneath. Google for something along the lines of "customize form fields". Whether it''s a good idea or not is another matter. -- 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-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.