webgui/www/extras/yui/examples/calendar/multi_select_2up/index.html
JT Smith 4f68a0933c added YUI and YUI-ext
fixed the resizable text area with IE problem
fixed the ad space with IE problem
merged the 7.2.0 and 7.1.4 change logs
2006-11-07 23:15:57 +00:00

85 lines
No EOL
2.5 KiB
HTML

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>Yahoo! Calendar Control - Multi-Select 2-up Implementation</title>
<link rel="stylesheet" href="../css/examples.css" type="text/css">
<script type="text/javascript" src="../../../build/yahoo/yahoo.js"></script>
<script type="text/javascript" src="../../../build/event/event.js" ></script>
<script type="text/javascript" src="../../../build/dom/dom.js" ></script>
<link type="text/css" rel="stylesheet" href="../../../build/fonts/fonts.css">
<link type="text/css" rel="stylesheet" href="../../../build/reset/reset.css">
<link rel="stylesheet" type="text/css" href="../../../docs/assets/dpSyntaxHighlighter.css" />
<script type="text/javascript" src="../../../build/calendar/calendar.js"></script>
<link type="text/css" rel="stylesheet" href="../../../build/calendar/assets/calendar.css">
<script language="javascript">
YAHOO.namespace("example.calendar");
function init() {
YAHOO.example.calendar.cal1 = new YAHOO.widget.Calendar2up("YAHOO.example.calendar.cal1","cal1Container");
var customConfig = function() {
this.Options.MULTI_SELECT = true;
}
YAHOO.example.calendar.cal1.setChildFunction("customConfig", customConfig);
YAHOO.example.calendar.cal1.callChildFunction("customConfig");
YAHOO.example.calendar.cal1.render();
}
YAHOO.util.Event.addListener(window, "load", init);
</script>
</head>
<body>
<img id="logo" src="../img/logo.gif"/>
<div id="pageTitle">
<h3>Calendar Control</h3>
</div>
<div class="column left">
<h4>Multi-Select 2-up Implementation</h4>
<p>To allow for multiple selections on a 2-up Calendar, use the following code:</p>
<textarea name="code" class="JScript" cols="60" rows="1">
var cal1;
function init() {
cal1 = new YAHOO.widget.Calendar2up("cal1","cal1Container");
var customConfig = function() {
this.Options.MULTI_SELECT = true;
}
cal1.setChildFunction("customConfig", customConfig);
cal1.callChildFunction("customConfig");
cal1.render();
}
</textarea>
<textarea name="code" class="HTML" cols="60" rows="1"><div id="cal1Container"></div></textarea>
</div>
<div id="cal1Container" style="position:absolute;left:50px;top:400px"></div>
</body>
<script src="../../../docs/assets/dpSyntaxHighlighter.js"></script>
<script language="javascript">
dp.SyntaxHighlighter.HighlightAll('code');
</script>
</html>