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 

Newbie Questions

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



Joined: 27 May 2006
Posts: 2

PostPosted: Sat May 27, 2006 6:59 pm    Post subject: Newbie Questions Reply with quote

Hello.... I have just purchased this product and it works quite well. I do have 3 questions related to my "dropdown" list date selection.

1. How do I make Sunday appear on the left and Saturday on the right?

2. How do I remove the "Clear All" portion of the control.

3. Is it possible to have my dropdown boxes setup without have dummy test as the first entry? For example, all I want my month field to have is numbers from 1 to 12.

Thanks!

Forch
Back to top
View user's profile Send private message
MarkFortier



Joined: 27 May 2006
Posts: 2

PostPosted: Sat May 27, 2006 7:08 pm    Post subject: Reply with quote

Found answers to 1 and 2.... but I am still looking for #3.

Thanks,

Forch
Back to top
View user's profile Send private message
calendarxp
Site Admin


Joined: 30 Jan 2005
Posts: 409

PostPosted: Sat May 27, 2006 7:25 pm    Post subject: Reply with quote

Yes, it's possible and easy. Taking the classic demo as example:

1st, you need to remove the dummy option from the html main page. e.g. remove the
Code:
document.write('<option value="-">-mon-');


2nd, you need to modify the fAfterSelected() in plugins.js to be as following:
Code:
function fAfterSelected(y,m,d,e) {
   var prefix=gdCtrl.name;
   var formRef=gdCtrl.form;
   formRef.elements[prefix+"_day"].options.selectedIndex=d-1;
   formRef.elements[prefix+"_mon"].options.selectedIndex=m-1;
   var _yc=formRef.elements[prefix+"_year"];
   _yc.options.selectedIndex=y-_yc.options[1].value;
}

That's all.

_________________
Copyright 2003-2011 Idemfactor Solutions, Inc. All rights reserved.
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