|
CalendarXP.net Support Most forums here are private and invisible to public.
|
View previous topic :: View next topic |
Author |
Message |
vastor
Joined: 12 Mar 2008 Posts: 1
|
Posted: Wed Mar 12, 2008 3:08 pm Post subject: Mac browsers showing 1970 as default starting year |
|
|
Hello, thanks for the great app.
I have implemented a DateRange picker which is working fine on most browsers.
I have two problems:
1. Mac browsers (Firefox/Safari) are showing 1970 as the default starting year. incompatibility issue ?
2. Although I do want to restrict end date to be after begin date which I have at the moment. I also want the calendar to act in a way that allows changing of the begin date to dates after the end date (making the end date +1 day after the new begin date).
You see, the way it is now, the user has to change the end date before changing the begin date which is kinda tedious.
basically, i need restriction from one side, end date HAS to be after begin date, but begin date CAN be selected after end date (and changing the end date to begin date + 1)
current code:
Code: |
function fEndPop(startc,endc) {
_startc=startc;
_endc=endc;
var sd=fParseInput(startc.value);
if (!sd) sd=gBegin;
var dt = new Date(sd[0], sd[1]-1, sd[2]+1);
var eds = [dt.getFullYear(), dt.getMonth()+1, dt.getDate()];
dt = new Date(sd[0], sd[1]-1, sd[2]+30);
var ed = [dt.getFullYear(), dt.getMonth()+1, dt.getDate()];
fPopCalendar(endc, [eds,ed,eds]);
}
|
once again, thanks for your time.[/code]
|
|
Back to top |
|
|
calendarxp Site Admin
Joined: 30 Jan 2005 Posts: 409
|
Posted: Wed Mar 12, 2008 3:54 pm Post subject: |
|
|
1. Please check the "error console" of your firefox to see if any error being logged there, and report them here so that we can analyze. It's even better if you can provide us with an online link to test.
2. the user is suppose to click on the "clear all" link on the calendar to remove restrictions if he wants to move past ending date. of course, you may also choose to not to restrict the start date at all, by using the following in plugins.js:
Code: | function fStartPop(startc,endc) {
_startc=startc;
_endc=endc;
fPopCalendar(startc, [gBegin,gEnd,gBegin]);
} |
_________________ Copyright 2003-2011 Idemfactor Solutions, Inc. All rights reserved. |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum
|
Copyright 2003- Idemfactor Solutions, Inc. All rights reserved.
Powered by phpBB © 2001, 2005 phpBB Group
|