That's this problem:
http://groups.google.com/group/hobodev/browse_thread/thread/63d8d672f92fbd21
It'd be nice if there was a solution that worked with both Rails2 and
Rails3, rather than having to create a fork of hobo-jquery...
Bryan
On 11-01-31 12:41 PM, Brian Corbin wrote:
Hello again Hobo Users. I hope someone can help me with this problem
I am facing with hobo jquery. I apologize if this has been asked and
answered before, but I didn't find anything in my initial searching.
First, my environment: Hobo 1.26 pre, Rails 3.0.3, Ruby 1.87,
Windows.
I have installed hobo-jquery according to the documentation. In a
brand new test application, I have run the rake tasks and added to my
application.dryml:<include src="hobo-jquery" plugin="hobo-jquery" />
and
<def tag="input" for="Date">
<hjq-datepicker dateFormat="yy-mm-dd" merge />
</def>
I also have the code to extend the "page" tag and add hjq-assets to
custom-scripts. I have verified using Firebug that hobo-jquery.js is
being loaded. In fact, Firebug shows an error in the javascript that
could be the cause of this issue.
I then generated a resource with a single date field. When I go to
create a New test resource (/test/new), the date field renders this
instead of the datepicker:
Date1 <!-- json_annotation ({"tag":"hjq-datepicker","events":
{},"init":"hjq.datepicker.init","options":{"dateFormat":"yy-mm-dd"}});
-->
Date1 is the label, the "<!-- json..." bit should be the datepicker.
The error I see in Firebug is:
comment is null
if(comment.nodeType!=Node.COMMENT_NODE) { return ({}); }
line 84 of hobo-jquery.js
Thanks for taking a look!
Brian
--
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.