Which jQuery files do I need to operate the Dialog object? I tried downloading the Redmond theme, but not able to get it working. Do I need to include the .js files such as mouse, draggable, position, resizable, ???
I have 2 datepickers and after the first one is selected, it fires off an event to update the 2nd datepicker minDate value. I debugged the code and it is working properly but the 2nd datepicker never receives the new minDate value.
Any suggestions or examples of how to accomplish this?
I have two datepickers and once the first is updated, it fires off an event to set the minDate value of the second datepicker to equal the first datepicker selected value. I debugged all the code, and the datepicker options are being set correctly. When the second datepicker displays it shows the old/original minDate value, and is not getting updated with the new minDate value.
I tried to Destroy the 2nd datepicker, and then reload it. This does allow the picker to receive the new minDate value, but when you select a dropdown month or year, it automatically takes you to the minDate value and not what you selected. I feel like this is a bug.
Here is the exception message from FireFox: $("#" + obj.id).datepicker is not a function
I am building a DatePicker and it is working fine in my individual project. When I integrate it into our main website, it is blowing up. Below are my references to the .js files:
// depending if min/max dates were set, objSwitch is used to // build the options for the datepicker var objSwitch; if (minDt.value == 0 && maxDt.value == 0) { objSwitch = "00"; } if (minDt.value > 0 && maxDt.value == 0) { objSwitch = "10"; } if (minDt.value == 0 && maxDt.value > 0) { objSwitch = "01"; } if (minDt.value > 0 && maxDt.value > 0) { objSwitch = "11"; }
switch (objSwitch) { case "00": // no min/max date set pickerOpts = { // minDate: "-" + minDt.value + "m", // number of months minus DateTime.Now maxDate: "+" + maxDt.value + "m", // no max date was set changeMonth: true, changeYear: true, dateFormat: 'mm/dd/yy' }; break; case "01": // only max date was set pickerOpts = { // minDate: "-" + minDt.value + "m", // number of months minus DateTime.Now maxDate: "-" + maxDt.value + "m", // number of months minus DateTime.Now changeMonth: true, changeYear: true, dateFormat: 'mm/dd/yy' }; break;
default: // both min/max dates were set pickerOpts = { minDate: "-" + minDt.value + "m", // number of months minus DateTime.Now maxDate: "-" + maxDt.value + "m", // number of months minus DateTime.Now changeMonth: true, changeYear: true, dateFormat: 'mm/dd/yy' }; break; }
$(function() {
alert("1. " + objID + 'txtCalendarDate'); // correct id is showing
$('#' + objID + 'txtCalendarDate').datepicker(pickerOpts); // show the datepicker throws the exception });
I am having issues integrating this control into our main website, so I am curious if this warning is the issue because I receive that error as an exception with this line: $('#' + objID + 'txtCalendarDate').datepicker(pickerOpts);
What doesn't make since is that it works in my individual project. Any ideas or suggestions is very appreciated.