Open ThomasCelen opened 8 years ago
I have the same problem. No solution so far.
I'm not sure (yet) how @bevacqua was loading his DOM elements, but you need to pass in a DOM element for the calendar to work. once i changed the argument to rome()
to the result of a document.getElementById()
call, the calendar worked fine.
to clarify:
var input = document.getElementById('myinput');
rome(input); // works fine.
Hi,
I'm trying to implement the datetimepicker, rome-plugin in my rails application but I'm receiving an unkown error. (please know this is the first time that I'm implementing such a plugin) so it might be a basic error.
My view:
The error I'm receiving: Uncaught TypeError: o.appendTo.appendChild is not a function via: calendar.js:67
Line 67 is:
api.back = subtractMonth;
This refers to line 1224 of the rome.standalone.js fileWhat I've done so far:
Anyone who can help me figure out what is wrong?
Many thanks, T
UPDATE: If I paste my view code to the top of the page, outside the table, it gives no error but still doesn't load the datetimepicker...