Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi there
I have installed YUI Calendar and User Interface Library (YUI) widgits into a new directory "sites/files/lib" and then set about creating a new calendar (after installing the Drupal modules YUI Calendar 6.x-1.1-4)
Now this is where I get a little unsure.
I have then created a new Page with the folloiwig script
--------------------------------
<div id="cal1Container"></div>
<script>
YAHOO.namespace("example.calendar");
YAHOO.example.calendar.init = function() {
YAHOO.example.calendar.cal1 = new YAHOO.widget.Calendar("cal1","cal1Container");
YAHOO.example.calendar.cal1.render();
}
YAHOO.util.Event.onDOMReady(YAHOO.example.calendar.init);
</script>
----------------------------
... as per the example on http://developer.yahoo.com/yui/examples/calendar/quickstart.html
Nothing happens!! I just get the main script printed back. I have set input format to html.
Where am I going wrong???
thanks
Comments
Comment #1
mcjudd CreditAttribution: mcjudd commentedI have included the initial script div id="cal1Container" initially ints just that my post won't allow div in the content!
Comment #2
mcjudd CreditAttribution: mcjudd commented