Skip to content
This repository

Date picker and range selector with scrollable months instead of paged (the only right way to do it)

Fetching latest commit…

Cannot retrieve the latest commit at this time

README.textile

Continuous calendar is a JQuery plugin for single date and range selections with following features:

  • Date dragging
  • No pagination, continuous month flow
  • Range shifting by dragging
  • Range expand with Shift + Mouse click
  • Display current date
  • Allow disabling of dates
  • Month select
  • Week select
  • Popup support
  • Support for different date formats

Live demo

Examples
Playground

QUnit tests

tests

Download zip

Latest revision

Getting started

Insert in head

<!-- basic default calendar styles -->
<link rel="stylesheet" href="http://reaktor.github.com/jquery-continuous-calendar/src/main/jquery.continuous-calendar.css" type="text/css" media="screen" />

<!-- custom user specified calendar styles -->
<style type="text/css">
    .calendarScrollContent {height: 250px;}
    input {border: none;background: none;}
    #dateRange1 {position: relative;clear: both;}
</style>

<!-- required JavaScript files -->
<script type="text/javascript" 
src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" 
src="http://reaktor.github.com/jquery-continuous-calendar/src/main/date-functions.js"></script>
<script type="text/javascript" 
src="http://reaktor.github.com/jquery-continuous-calendar/src/main/jquery.continuous-calendar.js" charset="UTF-8"></script>

Insert in body

<!-- range selection is attached to fields with class startDate and endDate -->
<div id="dateRange1">
  <input type="hidden" class="startDate" name="range_start">
  <input type="hidden" class="endDate" name="range_end">
</div>
<script type="text/javascript" language="JavaScript">
  $("#dateRange1").continuousCalendar({weeksBefore: 60,weeksAfter: 1});
</script>

License

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Something went wrong with that request. Please try again.