Support Forum Softcomplex logo
About Us  | Services  | Download  | Order  | Support  | |
| Search | Today's Posts | Stats | Board Rules | Not logged in [ Login | Register ]
go to bottom
Last active: Never

Printable Version | Subscribe | Add to Favourites   Post new thread
Author: Subject: Making WEEKSTART a configurable option
maclir
Junior Member

Posts: 3
Registered: 9/26/2002
Location: Jackson, Mississippi
Member Is Offline
posted on 9/26/2002 at 08:00 PM Reply With Quote
Making WEEKSTART a configurable option


Firstly, thaks for a great tool. We are implementing it on some of our websites here.

One addition that I made was to make the starting day for each week a configurable option, similar to the time component and the year scroll parms. It only requires a few lines of changes to the calendarx.js and calendar.html files.

In calendar.html

Remove the definition:
var NUM_WEEKSTART = 1

(in fact, move it to the corresponding place in the calendar2/1.js file)

Change all instances of NUM_WEEKSTART to obj_caller.week_start (there are only two)

In calendar1.js (or calendat2.js):

Add the definition of NUM_WEEKSTART

After the line
this.year_scroll = BUL_YEARSCROLL;
add
this.week_start = NUM_WEEKSTART;

Then when you whish to use the popup calendar, in the in-line script where you define the calx variable, and assign values to the year_scroll and time_comp properties, add the line:

calx.week_start = 1; (or 0)

Ken
View User's Profile View All Posts By User U2U Member
susan9
Junior Member

Posts: 2
Registered: 10/12/2002
Member Is Offline
posted on 10/14/2002 at 02:06 PM Reply With Quote
Fabulous!


My client's working week starts on a Saturday -- a real headache, I thought. Then I found Tigra, then I read and implemented your suggestions. Fantastic! Now, I've gotta solve the Javascript control error!! Dunno what's causing that...
View User's Profile View All Posts By User U2U Member
Post new thread

Related Links:
Product Page
Product Demonstrations Live Demos
Free Download Free Download
Product Documentation Documentation
Support Forum Support Forum
 

Go To Top


Powered by XMB 1.9.1 Nexus
Developed By Aventure Media & The XMB Group © 2002-2004