Hello all,
I used the following code to clear all the dates on scroll and to highlight
the events each month. Tell me if you think I am just hacking it here and
that there is something that is more efficient/correct. Thanks!

for(var q=0;q<8;q++){
               for(var r=1;r<7;r++){
                   enttab_mc.chooser_dc["dateGrid"]["dayBlock" + q +
"label" + r].background = false;
               }
           }
           for(var s=0;s<xmlDoc.firstChild.childNodes
[p].childNodes.length;s++){
               var entEventDate = new Date(today.getFullYear(),
xmlDoc.firstChild.childNodes[p].childNodes[s].attributes.month,
xmlDoc.firstChild.childNodes[p].childNodes[s].attributes.date);
               if(enttab_mc.chooser_dc.displayedMonth ==
xmlDoc.firstChild.childNodes[p].childNodes[s].attributes.month){
                   var monthBeginDate = new Date(today.getFullYear(),
xmlDoc.firstChild.childNodes[p].childNodes[s].attributes.month, 1);
                   var firstWeekOffset = monthBeginDate.getDay();
                   var weekNum = Math.ceil((Number(
xmlDoc.firstChild.childNodes
[p].childNodes[s].attributes.date)+firstWeekOffset)/7);
                   enttab_mc.chooser_dc["dateGrid"]["dayBlock" +
entEventDate.getDay() + "label" + weekNum].background = true;
                   enttab_mc.chooser_dc["dateGrid"]["dayBlock" +
entEventDate.getDay() + "label" + weekNum].setStyle("backgroundColor",
0xfe9a9a);
               }
           }

On 1/29/07, Jonathan Berry <[EMAIL PROTECTED]> wrote:

Hello all,
I am using a datechooser component for an events calendar and wondered if
you knew of a way to highlight other dates beside today's date (showToday).
I've googled this, but cannot seem to find anything. Any hints or articles
much to be appreciated.

--
Jonathan Berry, M.A.
IT Consultant
619.306.1712(m)
[EMAIL PROTECTED]
www.mindarc.com

-----------------------------------------------------------

This E-mail is covered by the Electronic Communications Privacy Act, 18
U.S.C. ?? 2510-2521 and is legally privileged.
This information is confidential information and is intended only for
the use of the individual or entity named above. If the reader of this
message is not the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this communication is strictly
prohibited.

-----------------------------------------------------------




--
Jonathan Berry, M.A.
IT Consultant
619.306.1712(m)
[EMAIL PROTECTED]
www.mindarc.com

-----------------------------------------------------------

This E-mail is covered by the Electronic Communications Privacy Act, 18
U.S.C. ?? 2510-2521 and is legally privileged.
This information is confidential information and is intended only for
the use of the individual or entity named above. If the reader of this
message is not the intended recipient, you are hereby notified that any
dissemination, distribution or copying of this communication is strictly
prohibited.

-----------------------------------------------------------
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to