| Issue with Ctrl-F ¶ | |
| Hi, This calendar is awesome, really cool stuff. But I am having an issue in IE6 having this calendar. 1. Go to a page with the calendar displayed What is causing IE to crash? How to get around it ? I could reproduce this in multiple machines, both with XP and Win2K Thanks danerles | |
| last |
| Re: compare dates ¶ | |
| Does nobody has an idea? | |
| last |
| Re: compare dates ¶ | |
| Greetings Jens, have you been able to solve the problem of user selectring earlier dates? All the best | |
| last |
| bug?? ¶ | |
| I have a text box with a date in it and am using that date as the default value for the calendar when it pops up (using the "date" parameter of calendar.setup). I have a button that pops up the calendar. The first time I click the button, everything works fine. But if I close the calendar and then click the button again to open it up, I get "Object doesn't support this property or method". The error is in the Calendar.prototype.setDate function on the line "if (!date.equalsTo(this.date)) {". I have the cache property set to true when I get this error and noticed that if I set it to false, the error does not occur. To recreate: 2. Click the button to open the calendar. The calendar pops up fine with the correct date selected. 3. Close the calendar and click the button again to open it up. You should get the error described above. 4. Now set "cache" to false and repeat the same steps. The error will not occur. | |
| last |
| PHP 5 ¶ | |
| I have incorporated the calendar into a project that requires all code be PHP 5. So, I updated calendar.php to follow PHP 5 protocols. Basically, I just changed the constructor to be __construct, and I made all the vars and functions public or protected as seemed appropriate. FYI, I was implementing this in a system with multiple calendars per page potentially. So, I instantiated a calendar at the top of the page to include the JavaScript in the document head. Then I instantiated more calendars as needed further down the page when the form field type called for a date. Something like: <head> ${$elemName . '_options'} = array(); As long as the variable $elemName is unique, you can plop in dozens of calendars in a single form. Here is the revised code for calendar.php: <?php /** define('NEWLINE', "\n"); class DHTML_Calendar { public $calendar_file; public function __construct($calendar_lib_path = '/includes/jscalendar/', public function set_option($name, $value) { public function load_files() { public function get_load_files_code() { public function _make_calendar($other_options = array()) { public function make_input_field($cal_options = array(), $field_attributes = array()) { $options = array_merge($cal_options, /// PRIVATE SECTION protected function _field_id($id) { return 'f-calendar-field-' . $id; } protected function _make_js_hash($array) { protected function _make_html_attr($array) { ?> Incidentally, I renamed the file to DHTML_Calendar.class.php, so that I could use the auto-loader feature in PHP 5 without having to specifically include the class file. If you haven't read up on auto-loader, you should. It's a very convenient function of PHP 5. I hope all of this is helpful to someone. Enjoy! Arthur | |
| last |
| JS calendar works then it stops?? ¶ | |
| My JS calendar uses a MS SQL 2000 database to store dates in this format 2/25/2005. The date column was initially set up as varchar (10) and JS calendar worked like a charm. Then the date column was switched to datetime (8) and only the year 2005 will run or date and year as 25 2005 will run. How can I enter a date formated like 2/25/2005 into the datetime(8) field? Any help would be greatly appreciated. | |
| last |
| Entering no date ¶ | |
| How can we use jscalendar when we have a "not required" date input field. Opening the calendar and closing wil not create an input in the field but what can we do if we want to change from "existing date" to "no date" up to now you have to use the keyboard to eleminate the date string. Using the keyboard is not really what we want. As setting the focus via mouse will again popup a calendar. A additional button for "no date" would be cool ! thanks Gero BTW: I'm planning to integrate jscalendar as a optional input method for dates into TUTOS http://www.tutos.org | |
| last |
| Re: Entering no date ¶ | |
| The current version doesn't have such an option; we'll add this feature in the next version, as an optional parameter. | |
| last |
| Add a date clearing button beside calendar ¶ | |
| Add the following to your form: <input type=button value="Clear Date" onClick="document.forms.fieldname.value=''"></div> Several things should be pointed out for those less familiar to javascript: Now you should be able to make your input field read-only, while still giving the user to clear the date out entirely by passing an empty value via the about onclick command. It's a stop-gap approach, at least until the dev team adds it directly to the calendar. ;-) | |
| last |
| Re: Entering no date ¶ | |
| Are there any news regarding this problem? Having a "no date" button would be great! Reasons for that are already mentioned in this thread.. | |
| last |
| Month Buttons ¶ | |
| Hi, Ive implemented Month buttons on the calendar, however I am having trouble calling a function that will change the month to the desired month. The date is going to an input textbox that postsback onblur. So I dont want to change information in the textbox until an actual date is clicked or enter is pressed on a date. If you need more information, just ask. Thanks, Brian | |
| last |
| Two calendars in one form? ¶ | |
| I have a form for an event calendar that has a field for start date and another for end date. How can I instantiate two instances of the calendar for each form field within a single form? | |
| last |
| Form with 2 textfields ¶ | |
| Hi! This is a great calendar. I´m very happy that I´ve found it. But I have a couple of problems/questions with it. 1. 2. Please help me with these two issues. | |
| last |
| Re: Form with 2 textfields ¶ | |
| Excellent product!!!! I have the exact same situation as described by Danne. I have the date on one form field and the time in another. How can I hook jscalendar to populate both form fields upon selection? Thanks, AJ | |
| last |
| Making dates unselectable ¶ | |
| I am currently attempting to utilize your calendar popup to fill in a online appointment booking form. I have customized the calendar to fit my specific needs sans one request. My appointment dates are ALWAYS full for around 7 days from the current date. I would like to make every date up to and including 7 days past the current date unselectable. Is there a way to do this? I have seen other popup calendars do this somehow but am not sure they are dhtml. Any help with the code would be appreciated. I was thinking I could work around this problem by creating a function that would add 7 days to the current date and display an alert if the user selects a date that is not far enough in advance but I would really like to make them unselectable (simular to weekend days) Thanks again... | |
| last |














