View previous topic :: View next topic |
Author |
Message |
MarkFortier
Joined: 27 May 2006 Posts: 2
|
Posted: Sat May 27, 2006 6:59 pm Post subject: Newbie Questions |
|
|
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 |
|
 |
MarkFortier
Joined: 27 May 2006 Posts: 2
|
Posted: Sat May 27, 2006 7:08 pm Post subject: |
|
|
Found answers to 1 and 2.... but I am still looking for #3.
Thanks,
Forch
|
|
Back to top |
|
 |
calendarxp Site Admin
Joined: 30 Jan 2005 Posts: 409
|
Posted: Sat May 27, 2006 7:25 pm Post subject: |
|
|
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 |
|
 |
|