marnen,
thanks for the response, that method only works if the image you want to 
use acts as a submit button 
http://webdesign.about.com/od/htmltags/p/bltags_inputimg.htm . Maybe i 
didn't specify my requirements enough: i'm looking for a normal form 
element, where a user could choose between one of a few images, and if 
they selected an incorrect image, they could change their selection 
before making it final and selecting another image.

One solution i found is to use to use image tags nested in radio tag 
labels, d:


<form>
<label><input type="radio" class="styled" name = "sex" id = "pic"><img 
src = "/images/male.jpg" /></label>
<br />
<label><input type="radio" class="styled" name = "sex" id = "pic"><img 
src = "/images/female.jpg" /></label>
</form>

granted this is an html solution, the underlying principal is the 
similar for rails. if anyone has any better ideas, or any different 
approaches, i'm interested to hear. Even if you have a crazy javascript 
heavy solution, at this point and time, i just want to know what my 
options are.

--
Richard Schneeman
http:/www.thinkbohemian.com
Bless anyone who reads this after midnight and before 8am

-- 
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 [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to