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

mcjudd’s picture

I have included the initial script div id="cal1Container" initially ints just that my post won't allow div in the content!

mcjudd’s picture

Status: Active » Closed (fixed)