[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 483: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4284: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4286: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4287: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
[phpBB Debug] PHP Notice: in file /includes/functions.php on line 4288: Cannot modify header information - headers already sent by (output started at /includes/functions.php:3493)
www.dhtmlgoodies.com • View topic - problem displaying two calenders in a page in IE 6.0
Advertisement

problem displaying two calenders in a page in IE 6.0

Moderators: Calcifer, slothy

problem displaying two calenders in a page in IE 6.0

Postby venkat » Mon Aug 14, 2006 12:21 am

I am getting problem displaying two calenders in a Page in IE 6.0. It works fine in FireFox.
Following is the Code I have been calling from jsp in WebLogic 8.1.4.

When I click the Second Calendar Month& Year are displaying as undefined. Any suggestions are greatly appreciated..

function displayCalendarThreeFeilds(yearInput,monthInput,dayInput,hourInput,minuteInput,buttonObj)
{
if(!hourInput)calendarDisplayTime=false; else calendarDisplayTime = true;
currentMonth = monthInput.value/1 -1;
currentYear = yearInput.value;
if(hourInput){
currentHour = hourInput.value;
inputHour = currentHour/1;
}
if(minuteInput){
currentMinute = minuteInput.value;
inputMinute = currentMinute/1;
}
inputYear = yearInput.value;
inputMonth = monthInput.value/1 - 1;
inputDay = dayInput.value/1;
if(!calendarDiv){
initCalendar();
}else{
writeCalendarContent();
}

returnDateToYear = yearInput;
returnDateToMonth = monthInput;
returnDateToDay = dayInput;
returnDateToHour = hourInput;
returnDateToMinute = minuteInput;




returnFormat = false;
returnDateTo = false;
positionCalendar(buttonObj);
calendarDiv.style.visibility = 'visible';
calendarDiv.style.display = 'block';
if(iframeObj){
iframeObj.style.display = '';
iframeObj.style.height = calendarDiv.offsetHeight + 'px';
iframeObj.style.width = calendarDiv.offsetWidth + 'px';
}
setTimeProperties();
updateYearDiv();
updateMonthDiv();
updateHourDiv();
updateMinuteDiv();

}
venkat
 
Posts: 2
Joined: Mon Aug 14, 2006 12:14 am

Re: problem displaying two calenders in a page in IE 6.0

Postby Oppman29 » Mon Aug 14, 2006 6:27 am

Fistofall. this is not a problem with the calendar but with you doing a modification to it. I also modified the calendar to use 3 fields in the input and its working fine. the problem is that you have to check if the fields hold a valid date or not. this is my added function


function DisplayCalendar3Boxes(monthInput,dayInput,yearInput,hourInput,minuteInput,buttonObj)
{

var oppman29date = new Date();
if(!hourInput)calendarDisplayTime=false; else calendarDisplayTime = true;


if(Number(monthInput.value) >0 && Number(monthInput.value) < 13 )
{currentMonth = monthInput.value/1 -1;
inputMonth = monthInput.value/1 - 1}
else {currentMonth = oppman29date.getMonth();
inputMonth =oppman29date.getMonth();}


if(Number(yearInput.value) >2005 && Number(yearInput.value) <2025 ){
currentYear = yearInput.value;
inputYear = yearInput.value;}
else {currentYear =oppman29date.getFullYear();
inputYear = oppman29date.getFullYear(); }


if(Number(dayInput.value) >0 && Number(dayInput.value) < 32){

inputDay = dayInput.value/1;}
else {inputDay =oppman29date.getDate();}


if(hourInput){
currentHour = hourInput.options[hourInput.selectedIndex].value;
inputHour = currentHour/1;
}
if(minuteInput){
currentMinute = minuteInput.options[minuteInput.selectedIndex].value;
inputMinute = currentMinute/1;
}


if(!calendarDiv){
initCalendar();
}else{
writeCalendarContent();
}



returnDateToYear = yearInput;
returnDateToMonth = monthInput;
returnDateToDay = dayInput;
returnDateToHour = hourInput;
returnDateToMinute = minuteInput;




returnFormat = false;
returnDateTo = false;
positionCalendar(buttonObj);
calendarDiv.style.visibility = 'visible';
calendarDiv.style.display = 'block';
if(iframeObj){
iframeObj.style.display = '';
iframeObj.style.height = calendarDiv.offsetHeight + 'px';
iframeObj.style.width = calendarDiv.offsetWidth + 'px';
}
setTimeProperties();
updateYearDiv();
updateMonthDiv();
updateHourDiv();
updateMinuteDiv();

}


/////////////// I also had to make a change in the pickdate funtion to include



returnDateToMonth.value= month;
returnDateToYear.value = currentYear;
returnDateToDay.value = day;


and it works great, if you want the whole code send me a email
Oppman29
 
Posts: 6
Joined: Tue Aug 01, 2006 5:47 am

Postby venkat » Mon Aug 14, 2006 3:41 pm

venkat
 
Posts: 2
Joined: Mon Aug 14, 2006 12:14 am


Return to Calendar script questions

Who is online

Users browsing this forum: No registered users and 6 guests

cron