473,387 Members | 3,801 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

need an event for this datepicker.

Expand|Select|Wrap|Line Numbers
  1. var weekend = [0,6];
  2. var weekendColor = "#e0e0e0";
  3. var fontface = "Verdana";
  4. var fontsize = 1;
  5.  
  6. var gNow = new Date();
  7. var ggWinCal;
  8. isNav = (navigator.appName.indexOf("Netscape") != -1) ? true : false;
  9. isIE = (navigator.appName.indexOf("Microsoft") != -1) ? true : false;
  10.  
  11. Calendar.Months = ["January", "February", "March", "April", "May", "June",
  12. "July", "August", "September", "October", "November", "December"];
  13.  
  14. // Non-Leap year Month days..
  15. Calendar.DOMonth = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
  16. // Leap year Month days..
  17. Calendar.lDOMonth = [31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31];
  18.  
  19. function Calendar(p_item, p_WinCal, p_month, p_year, p_format) {
  20.     if ((p_month == null) && (p_year == null))    return;
  21.  
  22.     if (p_WinCal == null)
  23.         this.gWinCal = ggWinCal;
  24.     else
  25.         this.gWinCal = p_WinCal;
  26.  
  27.     if (p_month == null) {
  28.         this.gMonthName = null;
  29.         this.gMonth = null;
  30.         this.gYearly = true;
  31.     } else {
  32.         this.gMonthName = Calendar.get_month(p_month);
  33.         this.gMonth = new Number(p_month);
  34.         this.gYearly = false;
  35.     }
  36.  
  37.     this.gYear = p_year;
  38.     this.gFormat = p_format;
  39.     this.gBGColor = "white";
  40.     this.gFGColor = "black";
  41.     this.gTextColor = "black";
  42.     this.gHeaderColor = "black";
  43.     this.gReturnItem = p_item;
  44. }
  45.  
  46. Calendar.get_month = Calendar_get_month;
  47. Calendar.get_daysofmonth = Calendar_get_daysofmonth;
  48. Calendar.calc_month_year = Calendar_calc_month_year;
  49. Calendar.print = Calendar_print;
  50.  
  51. function Calendar_get_month(monthNo) {
  52.     return Calendar.Months[monthNo];
  53. }
  54.  
  55. function Calendar_get_daysofmonth(monthNo, p_year) {
  56.     /* 
  57.     Check for leap year ..
  58.     1.Years evenly divisible by four are normally leap years, except for... 
  59.     2.Years also evenly divisible by 100 are not leap years, except for... 
  60.     3.Years also evenly divisible by 400 are leap years. 
  61.     */
  62.     if ((p_year % 4) == 0) {
  63.         if ((p_year % 100) == 0 && (p_year % 400) != 0)
  64.             return Calendar.DOMonth[monthNo];
  65.  
  66.         return Calendar.lDOMonth[monthNo];
  67.     } else
  68.         return Calendar.DOMonth[monthNo];
  69. }
  70.  
  71. function Calendar_calc_month_year(p_Month, p_Year, incr) {
  72.     /* 
  73.     Will return an 1-D array with 1st element being the calculated month 
  74.     and second being the calculated year 
  75.     after applying the month increment/decrement as specified by 'incr' parameter.
  76.     'incr' will normally have 1/-1 to navigate thru the months.
  77.     */
  78.     var ret_arr = new Array();
  79.  
  80.     if (incr == -1) {
  81.         // B A C K W A R D
  82.         if (p_Month == 0) {
  83.             ret_arr[0] = 11;
  84.             ret_arr[1] = parseInt(p_Year) - 1;
  85.         }
  86.         else {
  87.             ret_arr[0] = parseInt(p_Month) - 1;
  88.             ret_arr[1] = parseInt(p_Year);
  89.         }
  90.     } else if (incr == 1) {
  91.         // F O R W A R D
  92.         if (p_Month == 11) {
  93.             ret_arr[0] = 0;
  94.             ret_arr[1] = parseInt(p_Year) + 1;
  95.         }
  96.         else {
  97.             ret_arr[0] = parseInt(p_Month) + 1;
  98.             ret_arr[1] = parseInt(p_Year);
  99.         }
  100.     }
  101.  
  102.     return ret_arr;
  103. }
  104.  
  105. function Calendar_print() {
  106.     ggWinCal.print();
  107. }
  108.  
  109. function Calendar_calc_month_year(p_Month, p_Year, incr) {
  110.     /* 
  111.     Will return an 1-D array with 1st element being the calculated month 
  112.     and second being the calculated year 
  113.     after applying the month increment/decrement as specified by 'incr' parameter.
  114.     'incr' will normally have 1/-1 to navigate thru the months.
  115.     */
  116.     var ret_arr = new Array();
  117.  
  118.     if (incr == -1) {
  119.         // B A C K W A R D
  120.         if (p_Month == 0) {
  121.             ret_arr[0] = 11;
  122.             ret_arr[1] = parseInt(p_Year) - 1;
  123.         }
  124.         else {
  125.             ret_arr[0] = parseInt(p_Month) - 1;
  126.             ret_arr[1] = parseInt(p_Year);
  127.         }
  128.     } else if (incr == 1) {
  129.         // F O R W A R D
  130.         if (p_Month == 11) {
  131.             ret_arr[0] = 0;
  132.             ret_arr[1] = parseInt(p_Year) + 1;
  133.         }
  134.         else {
  135.             ret_arr[0] = parseInt(p_Month) + 1;
  136.             ret_arr[1] = parseInt(p_Year);
  137.         }
  138.     }
  139.  
  140.     return ret_arr;
  141. }
  142.  
  143. // This is for compatibility with Navigator 3, we have to create and discard one object before the prototype object exists.
  144. new Calendar();
  145.  
  146. Calendar.prototype.getMonthlyCalendarCode = function() {
  147.     var vCode = "";
  148.     var vHeader_Code = "";
  149.     var vData_Code = "";
  150.  
  151.     // Begin Table Drawing code here..
  152.     vCode = vCode + "<TABLE BORDER=1 BGCOLOR=\"" + this.gBGColor + "\">";
  153.  
  154.     vHeader_Code = this.cal_header();
  155.     vData_Code = this.cal_data();
  156.     vCode = vCode + vHeader_Code + vData_Code;
  157.  
  158.     vCode = vCode + "</TABLE>";
  159.  
  160.     return vCode;
  161. }
  162.  
  163. Calendar.prototype.show = function() {
  164.     var vCode = "";
  165.  
  166.     this.gWinCal.document.open();
  167.  
  168.     // Setup the page...
  169.     this.wwrite("<html>");
  170.     this.wwrite("<head><title>Calendar</title>");
  171.     this.wwrite("</head>");
  172.  
  173.     this.wwrite("<body " + 
  174.         "link=\"" + this.gLinkColor + "\" " + 
  175.         "vlink=\"" + this.gLinkColor + "\" " +
  176.         "alink=\"" + this.gLinkColor + "\" " +
  177.         "text=\"" + this.gTextColor + "\">");
  178.     this.wwriteA("<FONT FACE='" + fontface + "' SIZE=2><B>");
  179.     this.wwriteA(this.gMonthName + " " + this.gYear);
  180.     this.wwriteA("</B><BR>");
  181.  
  182.     // Show navigation buttons
  183.     var prevMMYYYY = Calendar.calc_month_year(this.gMonth, this.gYear, -1);
  184.     var prevMM = prevMMYYYY[0];
  185.     var prevYYYY = prevMMYYYY[1];
  186.  
  187.     var nextMMYYYY = Calendar.calc_month_year(this.gMonth, this.gYear, 1);
  188.     var nextMM = nextMMYYYY[0];
  189.     var nextYYYY = nextMMYYYY[1];
  190.  
  191.     this.wwrite("<TABLE WIDTH='100%' BORDER=1 CELLSPACING=0 CELLPADDING=0 BGCOLOR='#e0e0e0'><TR><TD ALIGN=center>");
  192.     this.wwrite("[<A HREF=\"" +
  193.         "javascript:window.opener.Build(" + 
  194.         "'" + this.gReturnItem + "', '" + this.gMonth + "', '" + (parseInt(this.gYear)-1) + "', '" + this.gFormat + "'" +
  195.         ");" +
  196.         "\"><<<\/A>]</TD><TD ALIGN=center>");
  197.     this.wwrite("[<A HREF=\"" +
  198.         "javascript:window.opener.Build(" + 
  199.         "'" + this.gReturnItem + "', '" + prevMM + "', '" + prevYYYY + "', '" + this.gFormat + "'" +
  200.         ");" +
  201.         "\"><<\/A>]</TD><TD ALIGN=center>");
  202.     this.wwrite("[<A HREF=\"javascript:window.print();\">Print</A>]</TD><TD ALIGN=center>");
  203.     this.wwrite("[<A HREF=\"" +
  204.         "javascript:window.opener.Build(" + 
  205.         "'" + this.gReturnItem + "', '" + nextMM + "', '" + nextYYYY + "', '" + this.gFormat + "'" +
  206.         ");" +
  207.         "\">><\/A>]</TD><TD ALIGN=center>");
  208.     this.wwrite("[<A HREF=\"" +
  209.         "javascript:window.opener.Build(" + 
  210.         "'" + this.gReturnItem + "', '" + this.gMonth + "', '" + (parseInt(this.gYear)+1) + "', '" + this.gFormat + "'" +
  211.         ");" +
  212.         "\">>><\/A>]</TD></TR></TABLE><BR>");
  213.  
  214.     // Get the complete calendar code for the month..
  215.     vCode = this.getMonthlyCalendarCode();
  216.     this.wwrite(vCode);
  217.  
  218.     this.wwrite("</font></body></html>");
  219.     this.gWinCal.document.close();
  220. }
  221.  
  222. Calendar.prototype.showY = function() {
  223.     var vCode = "";
  224.     var i;
  225.     var vr, vc, vx, vy;        // Row, Column, X-coord, Y-coord
  226.     var vxf = 285;            // X-Factor
  227.     var vyf = 200;            // Y-Factor
  228.     var vxm = 10;            // X-margin
  229.     var vym;                // Y-margin
  230.     if (isIE)    vym = 75;
  231.     else if (isNav)    vym = 25;
  232.  
  233.     this.gWinCal.document.open();
  234.  
  235.     this.wwrite("<html>");
  236.     this.wwrite("<head><title>Calendar</title>");
  237.     this.wwrite("<style type='text/css'>\n<!--");
  238.     for (i=0; i<12; i++) {
  239.         vc = i % 3;
  240.         if (i>=0 && i<= 2)    vr = 0;
  241.         if (i>=3 && i<= 5)    vr = 1;
  242.         if (i>=6 && i<= 8)    vr = 2;
  243.         if (i>=9 && i<= 11)    vr = 3;
  244.  
  245.         vx = parseInt(vxf * vc) + vxm;
  246.         vy = parseInt(vyf * vr) + vym;
  247.  
  248.         this.wwrite(".lclass" + i + " {position:absolute;top:" + vy + ";left:" + vx + ";}");
  249.     }
  250.     this.wwrite("-->\n</style>");
  251.     this.wwrite("</head>");
  252.  
  253.     this.wwrite("<body " + 
  254.         "link=\"" + this.gLinkColor + "\" " + 
  255.         "vlink=\"" + this.gLinkColor + "\" " +
  256.         "alink=\"" + this.gLinkColor + "\" " +
  257.         "text=\"" + this.gTextColor + "\">");
  258.     this.wwrite("<FONT FACE='" + fontface + "' SIZE=2><B>");
  259.     this.wwrite("Year : " + this.gYear);
  260.     this.wwrite("</B><BR>");
  261.  
  262.     // Show navigation buttons
  263.     var prevYYYY = parseInt(this.gYear) - 1;
  264.     var nextYYYY = parseInt(this.gYear) + 1;
  265.  
  266.     this.wwrite("<TABLE WIDTH='100%' BORDER=1 CELLSPACING=0 CELLPADDING=0 BGCOLOR='#e0e0e0'><TR><TD ALIGN=center>");
  267.     this.wwrite("[<A HREF=\"" +
  268.         "javascript:window.opener.Build(" + 
  269.         "'" + this.gReturnItem + "', null, '" + prevYYYY + "', '" + this.gFormat + "'" +
  270.         ");" +
  271.         "\" alt='Prev Year'><<<\/A>]</TD><TD ALIGN=center>");
  272.     this.wwrite("[<A HREF=\"javascript:window.print();\">Print</A>]</TD><TD ALIGN=center>");
  273.     this.wwrite("[<A HREF=\"" +
  274.         "javascript:window.opener.Build(" + 
  275.         "'" + this.gReturnItem + "', null, '" + nextYYYY + "', '" + this.gFormat + "'" +
  276.         ");" +
  277.         "\">>><\/A>]</TD></TR></TABLE><BR>");
  278.  
  279.     // Get the complete calendar code for each month..
  280.     var j;
  281.     for (i=11; i>=0; i--) {
  282.         if (isIE)
  283.             this.wwrite("<DIV ID=\"layer" + i + "\" CLASS=\"lclass" + i + "\">");
  284.         else if (isNav)
  285.             this.wwrite("<LAYER ID=\"layer" + i + "\" CLASS=\"lclass" + i + "\">");
  286.  
  287.         this.gMonth = i;
  288.         this.gMonthName = Calendar.get_month(this.gMonth);
  289.         vCode = this.getMonthlyCalendarCode();
  290.         this.wwrite(this.gMonthName + "/" + this.gYear + "<BR>");
  291.         this.wwrite(vCode);
  292.  
  293.         if (isIE)
  294.             this.wwrite("</DIV>");
  295.         else if (isNav)
  296.             this.wwrite("</LAYER>");
  297.     }
  298.  
  299.     this.wwrite("</font><BR></body></html>");
  300.     this.gWinCal.document.close();
  301. }
  302.  
  303. Calendar.prototype.wwrite = function(wtext) {
  304.     this.gWinCal.document.writeln(wtext);
  305. }
  306.  
  307. Calendar.prototype.wwriteA = function(wtext) {
  308.     this.gWinCal.document.write(wtext);
  309. }
  310.  
  311. Calendar.prototype.cal_header = function() {
  312.     var vCode = "";
  313.  
  314.     vCode = vCode + "<TR>";
  315.     vCode = vCode + "<TD WIDTH='14%'><FONT SIZE='2' FACE='" + fontface + "' COLOR='" + this.gHeaderColor + "'><B>Sun</B></FONT></TD>";
  316.     vCode = vCode + "<TD WIDTH='14%'><FONT SIZE='2' FACE='" + fontface + "' COLOR='" + this.gHeaderColor + "'><B>Mon</B></FONT></TD>";
  317.     vCode = vCode + "<TD WIDTH='14%'><FONT SIZE='2' FACE='" + fontface + "' COLOR='" + this.gHeaderColor + "'><B>Tue</B></FONT></TD>";
  318.     vCode = vCode + "<TD WIDTH='14%'><FONT SIZE='2' FACE='" + fontface + "' COLOR='" + this.gHeaderColor + "'><B>Wed</B></FONT></TD>";
  319.     vCode = vCode + "<TD WIDTH='14%'><FONT SIZE='2' FACE='" + fontface + "' COLOR='" + this.gHeaderColor + "'><B>Thu</B></FONT></TD>";
  320.     vCode = vCode + "<TD WIDTH='14%'><FONT SIZE='2' FACE='" + fontface + "' COLOR='" + this.gHeaderColor + "'><B>Fri</B></FONT></TD>";
  321.     vCode = vCode + "<TD WIDTH='16%'><FONT SIZE='2' FACE='" + fontface + "' COLOR='" + this.gHeaderColor + "'><B>Sat</B></FONT></TD>";
  322.     vCode = vCode + "</TR>";
  323.  
  324.     return vCode;
  325. }
  326.  
  327. Calendar.prototype.cal_data = function() {
  328.     var vDate = new Date();
  329.     vDate.setDate(1);
  330.     vDate.setMonth(this.gMonth);
  331.     vDate.setFullYear(this.gYear);
  332.  
  333.     var vFirstDay=vDate.getDay();
  334.     var vDay=1;
  335.     var vLastDay=Calendar.get_daysofmonth(this.gMonth, this.gYear);
  336.     var vOnLastDay=0;
  337.     var vCode = "";
  338.  
  339.     /*
  340.     Get day for the 1st of the requested month/year..
  341.     Place as many blank cells before the 1st day of the month as necessary. 
  342.     */
  343.  
  344.     vCode = vCode + "<TR>";
  345.     for (i=0; i<vFirstDay; i++) {
  346.         vCode = vCode + "<TD WIDTH='14%'" + this.write_weekend_string(i) + "><FONT SIZE='2' FACE='" + fontface + "'> </FONT></TD>";
  347.     }
  348.  
  349.     // Write rest of the 1st week
  350.     for (j=vFirstDay; j<7; j++) {
  351.         vCode = vCode + "<TD WIDTH='14%'" + this.write_weekend_string(j) + "><FONT SIZE='2' FACE='" + fontface + "'>" + 
  352.             "<A HREF='#' " + 
  353.                 "onClick=\"self.opener.document." + this.gReturnItem + ".value='" + 
  354.                 this.format_data(vDay) + 
  355.                 "';window.close();\">" + 
  356.                 this.format_day(vDay) + 
  357.             "</A>" + 
  358.             "</FONT></TD>";
  359.         vDay=vDay + 1;
  360.     }
  361.     vCode = vCode + "</TR>";
  362.  
  363.     // Write the rest of the weeks
  364.     for (k=2; k<7; k++) {
  365.         vCode = vCode + "<TR>";
  366.  
  367.         for (j=0; j<7; j++) {
  368.             vCode = vCode + "<TD WIDTH='14%'" + this.write_weekend_string(j) + "><FONT SIZE='2' FACE='" + fontface + "'>" + 
  369.                 "<A HREF='#' " + 
  370.                     "onClick=\"self.opener.document." + this.gReturnItem + ".value='" + 
  371.                     this.format_data(vDay) + 
  372.                     "';window.close();\">" + 
  373.                 this.format_day(vDay) + 
  374.                 "</A>" + 
  375.                 "</FONT></TD>";
  376.             vDay=vDay + 1;
  377.  
  378.             if (vDay > vLastDay) {
  379.                 vOnLastDay = 1;
  380.                 break;
  381.             }
  382.         }
  383.  
  384.         if (j == 6)
  385.             vCode = vCode + "</TR>";
  386.         if (vOnLastDay == 1)
  387.             break;
  388.     }
  389.  
  390.     // Fill up the rest of last week with proper blanks, so that we get proper square blocks
  391.     for (m=1; m<(7-j); m++) {
  392.         if (this.gYearly)
  393.             vCode = vCode + "<TD WIDTH='14%'" + this.write_weekend_string(j+m) + 
  394.             "><FONT SIZE='2' FACE='" + fontface + "' COLOR='gray'> </FONT></TD>";
  395.         else
  396.             vCode = vCode + "<TD WIDTH='14%'" + this.write_weekend_string(j+m) + 
  397.             "><FONT SIZE='2' FACE='" + fontface + "' COLOR='gray'>" + m + "</FONT></TD>";
  398.     }
  399.  
  400.     return vCode;
  401. }
  402.  
  403. Calendar.prototype.format_day = function(vday) {
  404.     var vNowDay = gNow.getDate();
  405.     var vNowMonth = gNow.getMonth();
  406.     var vNowYear = gNow.getFullYear();
  407.  
  408.     if (vday == vNowDay && this.gMonth == vNowMonth && this.gYear == vNowYear)
  409.         return ("<FONT COLOR=\"RED\"><B>" + vday + "</B></FONT>");
  410.     else
  411.         return (vday);
  412. }
  413.  
  414. Calendar.prototype.write_weekend_string = function(vday) {
  415.     var i;
  416.  
  417.     // Return special formatting for the weekend day.
  418.     for (i=0; i<weekend.length; i++) {
  419.         if (vday == weekend[i])
  420.             return (" BGCOLOR=\"" + weekendColor + "\"");
  421.     }
  422.  
  423.     return "";
  424. }
  425.  
  426. Calendar.prototype.format_data = function(p_day) {
  427.     var vData;
  428.     var vMonth = 1 + this.gMonth;
  429.     vMonth = (vMonth.toString().length < 2) ? "0" + vMonth : vMonth;
  430.     var vMon = Calendar.get_month(this.gMonth).substr(0,3).toUppe  rCase();
  431.     var vFMon = Calendar.get_month(this.gMonth).toUpperCase();
  432.     var vY4 = new String(this.gYear);
  433.     var vY2 = new String(this.gYear.substr(2,2));
  434.     var vDD = (p_day.toString().length < 2) ? "0" + p_day : p_day;
  435.  
  436.     switch (this.gFormat) {
  437.         case "YYYY-MM-DD" :
  438.             vData = vY4 + "-" + vMonth + "-" + vDD;
  439.             break;
  440.         case "DD-MM-YYYY" :
  441.             vData = vDD + "-" + vMonth + "-" + vY4;
  442.             break;
  443.         case "MM-DD-YYYY" :
  444.             vData = vMonth + "-" + vDD + "-" + vY4;
  445.             break;
  446.         case "YY-MM-DD" :
  447.             vData = vY2 + "-" + vMonth + "-" + vDD;
  448.             break;
  449.         case "DD-MM-YY" :
  450.             vData = vDD + "-" + vMonth + "-" + vY2;
  451.             break;
  452.         case "MM-DD-YY" :
  453.             vData = vMonth + "-" + vDD + "-" +  vY2;
  454.             break;
  455.     }
  456.  
  457.     return vData;
  458. }
  459.  
  460. function Build(p_item, p_month, p_year, p_format) {
  461.     var p_WinCal = ggWinCal;
  462.     gCal = new Calendar(p_item, p_WinCal, p_month, p_year, p_format);
  463.  
  464.     // Customize your Calendar here..
  465.     gCal.gBGColor="white";
  466.     gCal.gLinkColor="black";
  467.     gCal.gTextColor="black";
  468.     gCal.gHeaderColor="darkgreen";
  469.  
  470.     // Choose appropriate show function
  471.     if (gCal.gYearly)    gCal.showY();
  472.     else    gCal.show();
  473. }
  474.  
  475. function show_calendar() {
  476.     /* 
  477.         p_month : 0-11 for Jan-Dec; 12 for All Months.
  478.         p_year    : 4-digit year
  479.         p_format: Date format (mm-dd-yyyy, dd-mm-yy, ...)
  480.         p_item    : Return Item.
  481.     */
  482.  
  483.     p_item = arguments[0];
  484.     p_month = new String(gNow.getMonth());
  485.     p_year = new String(gNow.getFullYear().toString());
  486.     p_format = new String(arguments[1]).toUpperCase();
  487.  
  488.     vWinCal = window.open("", "Calendar", 
  489.         "width=250,height=220,status=no,resizable=no,top=20  0,left=200");
  490.     vWinCal.opener = self;
  491.     ggWinCal = vWinCal;
  492.  
  493.     Build(p_item, p_month, p_year, p_format);
  494. }
  495.  
  496. /*
  497. Yearly Calendar Code Starts here
  498. */
  499. function show_yearly_calendar(p_item, p_year, p_format) {
  500.     // Load the defaults..
  501.     if (p_year == null || p_year == "")
  502.         p_year = new String(gNow.getFullYear().toString());
  503.     if (p_format == null || p_format == "")
  504.         p_format = "YYYY/MM/DD";
  505.  
  506.     var vWinCal = window.open("", "Calendar", "scrollbars=yes");
  507.     vWinCal.opener = self;
  508.     ggWinCal = vWinCal;
  509.  
  510.     Build(p_item, null, p_year, p_format);
  511. }
  512.  
  513.  
  514.  
  515.  
i am using this date picker in my application, now i need to call a function when the date changes !!

the date field i am using is
Expand|Select|Wrap|Line Numbers
  1. <!-- Scheduled date of release -->
  2. <tr bgColor=#eeeeee>
  3. <td width="35%" class='cellDesc'>Scehduled Date Of Release</td>
  4. <td>
  5. <input name='RELEASE_DATE' class='cellData' readonly title="Scehduled Date Of Release" value= <%=dorelease%> >
  6. <A onmouseover="window.status ='Date Picker';return true;" onmouseout="window.status='';return true;" href="javascript:show_calendar('input_productivity.RELEA  SE_DATE','mm-dd-yyyy');" > 
  7. <IMG src="images/calendar.png" align=middle border=0 tabIndex=16>
  8. </A> 
  9. </td>
  10. </tr>
  11.  
how to i do it ??
thanks....
May 1 '09 #1
3 2122
acoder
16,027 Expert Mod 8TB
Have you got this calendar/date picker from somewhere? If you have, I would suggest that you abandon it and get a more, modern version. You could, of course, do that anyway.

If it's been created by a third party, check the documentation.
May 1 '09 #2
okay...............
tomorrow is the deadline.......
no way of doing it in this ??
May 2 '09 #3
acoder
16,027 Expert Mod 8TB
I would recommend the Dynarch calendar and there's an easy way to do just what you want using callback functions as described here (use onSelect).
May 2 '09 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Qumer Mumtaz | last post by:
Hi There is a datatime picker control in one column of my datagrid.When the cell of sepecific column get the focus the datetime picker control appeare It shows the current system date.If once I...
2
by: WJ | last post by:
Is there a DatePicker control in the current VS.Net (2003) other than the Calendar control ? If not, how can the current calendard control be minimized to a square 21x21px button (with graphic). ...
2
by: flipdoubt | last post by:
What do most people use for a DatePicker and is a DatePicker included in ASP.NET 2.0? I've seen some of the commercial products out there, but the redistributable license for most of them is too...
2
by: G .Net | last post by:
Hi Can anybody help me with setting the allowable Max and Min date for a DatePicker? I would like to restrict the possible date selections to a given month. So for example, if I were to...
0
by: Armand | last post by:
Hi All, is anyone of you have any good resource about implementing datepicker that is binded into asp:textbox control? I do have a client side datepicker in JS, but it is binded to html input...
1
by: julian.tklim | last post by:
Hi, I've got an input box with popup calendar (date picker) all generated using javascipt. Once a date is selected from the datepicker window, the date value is populated back to the input...
2
by: sorobor | last post by:
dear sir .. i am using cakephp freamwork ..By the way i m begener in php and javascript .. My probs r bellow I made a javascript calender ..there is a close button ..when i press close button...
2
by: Vbbeginner07 | last post by:
How to display current date in a datepicker where once we have loaded the datepicker onto form it shows current date,but after some days it shows only the date when it was loaded onto the form,please...
8
by: shaielinna | last post by:
<? ob_start(); session_start(); require('../includes/inc.php'); require('../includes/settings.php'); include("../includes/dbconnect.php");?> <?php // requires the class require...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.