On Apr 7, 2011, at 11:41 AM, Dennis saka wrote:

> Hi
> What is the syntax of adding .html_safe in hobo jquery tag like <hjq-
> datepicker dateFormat="yy-mm-dd" />  in hobo 1.3 with hobo_jquery
> plugin installed?
> 
> im getting this
> 
> <!-- json_annotation
> ({"tag":"hjq-datepicker","events":{},"init":"hjq.datepicker.init","options":{"dateFormat":"yy-mm-dd"}});
> -->
> 
> instead of a datepicker being displayed in the form
> 
> Can some one kindly help?
> 
> kind regards
> dennis
> 
> -- 
> 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.


I did this, based on the RailsCast on calendars.

In my form, I have

<input:start_date type="text" size="20" class="datepick" 
value='&this.start_date.strftime("%m/%d/%Y")'/>

In application.js, I have 

jQuery(document).ready(function() {
        jQuery(".datepick").datepicker();
});


Works like a charm.  I realize I bypassed the hjq-datepicker tag in 
hobo-jquery.dryml.   If you get the hjq-datepicker tag to work, I'd love to see 
the code you use.


-- 
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