CalendarXP.net Support Forum Index CalendarXP.net Support
Most forums here are private and invisible to public.
 
 FAQFAQ   SearchSearch   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Highlighting multiple days

 
Post new topic   Reply to topic    CalendarXP.net Support Forum Index -> PopCalendarXP Related
View previous topic :: View next topic  
Author Message
Vermule



Joined: 23 May 2006
Posts: 27

PostPosted: Thu May 25, 2006 8:27 pm    Post subject: Highlighting multiple days Reply with quote

I saw the FAQ http://www.calendarxp.net/forum/viewtopic.php?t=146 on this, but this seems different than what I would like to do.

I have 2 fields, arrive date and depart date. When I have an arrival date selected, I want it to appear when I go to choose the depart date. When I open the calendar again, both the arrival and depart date should be highlighted.

How would I accomplish this Question
Back to top
View user's profile Send private message
calendarxp
Site Admin


Joined: 30 Jan 2005
Posts: 409

PostPosted: Fri May 26, 2006 4:40 am    Post subject: Reply with quote

All you need is to have the following function in plugins.js:
Code:
function fIsSelected(y,m,d) {
   var sd=fParseInput(_startc.value), ed=fParseInput(_endc.value);
   if (sd&&sd[2]==d&&sd[1]==m&&sd[0]==y||ed&&ed[2]==d&&ed[1]==m&&ed[0]==y) return true;
   else return false;
}

_________________
Copyright 2003-2011 Idemfactor Solutions, Inc. All rights reserved.
Back to top
View user's profile Send private message
Vermule



Joined: 23 May 2006
Posts: 27

PostPosted: Fri May 26, 2006 3:46 pm    Post subject: Reply with quote

Thank you, this worked perfectly.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    CalendarXP.net Support Forum Index -> PopCalendarXP Related All times are GMT
Page 1 of 1

 
Jump to:  
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