Calendar example

The idea for the new calendar is to integrate seemlessly with the template engine and work perfectly with mozilla (even with the buggy onLeave callbacks being fired) , to do this it needs

  1. pulldowns for month and year
  2. seperate methods for inputing month/year only.
  3. a way to tie it to a hidden field (read/write) and a visable field (read)
    the visable field should also be filled on page load...?? (or created..)
Get example    Set example   

Usage:

< name="calendar_test">

<-- A standard input field (it will be made invisible later) -->
<input name="date_input1" value="2001-05-02">

<script type="text/javascript">
// as we cant do associative arrays in JS (easily)
// just do a sequence...

var date_input1 = new dynCalendar(
    'name'  ,   'date_input1',           // name of layer & input field
    'images' ,  '/templates/javascript/calendar/images',
    'type'  ,   'day'                // type = day | month | ??year??
    );
</script>

// date input that submits
var date_input1 = new dynCalendar(
    'name'  ,   'date_input1',           // name of layer & input field
    'images' ,  '/templates/javascript/calendar/images',
    'type'  ,   'day',                // type = day | month | ??year??
    'formSubmit', 'true'
    );
</script>


// and the month input...

<input name="date_input2" value="2001-05-02">

<script type="text/javascript">
// as we cant do associative arrays in JS (easily)
// just do a sequence...

var date_input2 = new dynCalendar(
    'name'  ,   'date_input2',           // name of layer & input field
    'images' ,  '/templates/javascript/calendar/images',
    'type'  ,   'month'                // type = day | month | ??year??
    );
</script>



</form>