kevin cline wrote:> Is this a homework problem? What have you done so far?
No its for work and so far i have used java script and can get it to
work with the calculation but i want to use onblur, so that when i move
away from the measurement_centimeter text box i can automatically get a
conversion. I have dont this so far:
<%= error_messages_for ''measurement'' %>
<!--[form:measurement]-->
<p><label
for="measurement_centimeter">Centimeter</label><br/>
<%= text_field ''measurement'',
''centimeter'' %></p>
<!--<input type="form.measurement_centimeter.value"
(value)="form.measurement_centimeter.value"
onblur="convert(form.measurement_centimeter.value,
''imperial'',
''measurement_inch'');" />-->
<p><label
for="measurement_inch">Inch</label><br/>
<%= text_field ''measurement'', ''inch''
%></p>
<!--[eoform:measurement]-->
this doesnt work it creates a blank box and i have to go on this then
move away to get it too work any suggestions....
--
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
-~----------~----~----~----~------~----~------~--~---