Calendar Control - Multi-Select Implementation : Calendar : GUI Components : JavaScript DHTML examples (example source code) Organized by topic

JavaScript DHTML
C++
PHP
JavaScript DHTML Home »  GUI Components   » [  Calendar  ]   
 



Calendar Control - Multi-Select Implementation

Please note that some example is only working under IE or Firefox.


<!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 Implementation</title>
  <link rel="stylesheet" href="./examples/calendar/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.Calendar("YAHOO.example.calendar.cal1""cal1Container");
      YAHOO.example.calendar.cal1.Options.MULTI_SELECT = true;
      YAHOO.example.calendar.cal1.render();
    }
  </script>

  

</head>

<body onload="init()">
  <div id="pageTitle">
    <h3>Calendar Control</h3>
  </div>

  <div class="column left">
    <h4>Simple Multi-Select Implementation</h4>

    <p>This implementation allows for selection of multiple values. This is accomplished by simply changing an option in the calendar configuration options: </p>
<textarea name="code" class="JScript" cols="60" rows="1">
var cal1;
function init() {
   cal1 = new YAHOO.widget.Calendar("cal1""cal1Container");
   cal1.Options.MULTI_SELECT = true;
   cal1.render();
}
</textarea>
</div>
  <div class="column right">
    <div style="margin-left:auto;margin-right:auto;width:150px">
      <div id="cal1Container"></div>
    </div>
    <div style="margin-left:auto;margin-right:auto;text-align:center;width:150px;clear:both">
      <a href="javascript:YAHOO.example.calendar.cal1.reset()" class="navLink" style="font-size:12px;text-decoration:underline">reset</a>|
      <a href="javascript:alert(YAHOO.example.calendar.cal1.getSelectedDates())" class="navLink" style="font-size:12px;text-decoration:underline">what's selected?</a>
    </div>
  </div>

<script src="./docs/assets/dpSyntaxHighlighter.js"></script>
<script language="javascript"
dp.SyntaxHighlighter.HighlightAll('code'); 
</script>

</body>
</html>
           
       
Download: yui.zip   ( 3,714  K )  
Related examples in the same category
1.  HTML Calendar based on DynAPIHas Download File
2.  JavaScript Date Picker based on ComboBoxHas Download File
3.  Calendar Control - Single-Select ImplementationHas Download File
4.  Calendar Control - 2-Up ImplementationHas Download File
5.  Calendar Control - Handling onSelect / onDeselectHas Download File
6.  Calendar Control - Mix/Max ImplementationHas Download File
7.  Calendar Control - Multi-Select 2-up ImplementationHas Download File
8.  Calendar Control - Custom Renderer Example (Holiday Renderer Implementation)Has Download File
9.  Calendar Control - Date Restriction Example (Date Restriction Implementation)Has Download File
10.  Calendar Control - Row Highlight Example (Row Highlight Implementation)Has Download File
11.  Popup calendarHas Download File
12.  Month Calendar
13.  Popup Calendar for a textfield
14.  Multiselection Calendar
15.  Free Date Picker : An easy plugin to add a date picker (calendar) in your web site
16.  HTML Date Picker
17.  Date Picker in new windowHas Download File
18.  All browser CalendarHas Download File
19.  DHTML Calendar for the impatientHas Download File
20.  Calendar: special dayHas Download File
21.  Calendar: day infoHas Download File
22.  Calendar: Multiple day selectionHas Download File
23.  Calendar with different themeHas Download File
24.  Calendar with image for each monthHas Download File
25.  Fancy Calendar Has Download File
26.  Another Calendar Has Download File
27.  Date Time PickerHas Download File
28.  Month Calendar
29.  Building a Calculator
30.  A Dynamic Calendar Table
31.  Dynamic HTML Calendar
32.   A Static Calendar by JavaScript
33.  Displaying the Calendar
34.  Calendar (IE only)
35.  Calendar in slide tab
36.  Another DHTML Calendar
37.  Event CalendarHas Download File
38.  Open calendarHas Download File
























Home| Contact Us
Copyright 2003 - 04 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.