Hello, I am struggling to run some custom javascript on a page, and I am 
sure I am doing something wrong.

I ran the following command:
hobo g resource event name:string description:text

ran the migration,
then created the edit.dryml in app/views/events/edit.dryml

and added the following as per the documentation here: 
http://www.hobocentral.net/manual/plugins#creating-a-hobo-plugin-from-a-jquery-plugin

<edit-page>
  <custom-scripts:>
    <javascript name="jquery.simple-color"/>
    <script type="text/javascript">
      jQuery(document).ready(function($) {
        $('.simple_color').simpleColor();
      });
    </script>
  </custom-scripts:>

  <form:>
    <field-list:>
      <color-view:>
        <input class='simple_color'/>
      </color-view:>
    </field-list:>
  </form:>
</edit-page>



but nothing. I can tell from the page source that the javascript is loaded. 
I am sure I am missing some very basic step but am scratching my head as to 
what it is.

Any help is appreciated.

-- 
You received this message because you are subscribed to the Google Groups "Hobo 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/hobousers.
For more options, visit https://groups.google.com/d/optout.

Reply via email to