i've managed to get a basic color-picker (https://github.com/recurser/
jquery-simple-color) into a hobo form, relatively simply...

    <form>
        <field-list fields="title, date, background-color">
           <background-color-view:><input type="text"
class="simple_color" value='#{this}'/></background-color-view:>
        </field-list>
      <submit label="#{ht
'milestone.actions.save', :default=>['Save']}"/>
    </form>

    <javascript name="jquery.simple-color"/>
    <script>
      jQuery('.simple_color').simpleColor();
    </script>

this is enough to populate the picker with the current background-
color from the model, then the picker allows me to select a new
color... but i don't understand how to pass the new color value back
to hobo so that submit will update the record in the model.

can anyone help?

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" 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/hobousers?hl=en.

Reply via email to