﻿<?xml version="1.0" encoding="utf-8"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0"><channel><title>Intersoft Community - WebEssentials - highlight  all Sunday and Saturday in intersoft web calendar. </title><link>http://www.intersoftsolutions.com/Community/WebEssentials/highlight-all-Sunday-and-Saturday-in-intersoft-web-calendar/</link><description /><generator>http://www.intersoftsolutions.com</generator><language>en</language><copyright>Copyright 2002 - 2015 Intersoft Solutions Corp. All rights reserved.</copyright><ttl>60</ttl><item><title>highlight  all Sunday and Saturday in intersoft web calendar. </title><link>http://www.intersoftsolutions.com/Community/WebEssentials/highlight-all-Sunday-and-Saturday-in-intersoft-web-calendar/</link><pubDate>Wed, 29 May 2013 06:44:18 GMT</pubDate><dc:creator>Shahbazsonu</dc:creator><category>Web Calendar</category><description>&lt;div&gt;This is working &lt;/div&gt;
&lt;div&gt;thanks.&lt;/div&gt;</description></item><item><title>highlight  all Sunday and Saturday in intersoft web calendar. </title><link>http://www.intersoftsolutions.com/Community/WebEssentials/highlight-all-Sunday-and-Saturday-in-intersoft-web-calendar/</link><pubDate>Wed, 29 May 2013 03:35:06 GMT</pubDate><dc:creator>Hans</dc:creator><category>Web Calendar</category><description>&lt;p&gt;Hello,&lt;br /&gt;&lt;br /&gt;Thank you for your question.&lt;br /&gt;&lt;br /&gt;I have made a simple WebCalender sample to select all Sunday and Saturday on this month.&lt;br /&gt;I add some validation javascript code in OnAfterRender client side event.&lt;br /&gt;I check all dates in this month and add all Sunday and Saturday to SelectedDates collection.&lt;br /&gt;Here the example snippet javascript code, how I select all Sunday and Saturday:&lt;br /&gt;&lt;/p&gt;&lt;pre&gt;function OnAfterRender(controlId, calendarType) {    var WebCalendar1 = ISGetObject(controlId);
    var calendar = WebCalendar1.Calendars[0];
    var month = calendar.Month;
    var year = calendar.Year;
    sundays(year, (month - 1));
    return true;
}
function sundays(year, month) {
    var WebCalendar1 = ISGetObject("WebCalendar1");
    WebCalendar1.SelectedDates.Clear();
    var day = 1;
    var counter = 0;
    var date = new Date(year, month, day);
    while (date.getMonth() === month) {
        if (date.getDay() === 0 || date.getDay() === 6) { // Sun=0, Mon=1, Tue=2, etc.
            //To add the date to SelectedDate collection
            WebCalendar1.SelectedDates.Add(new WebCalendarSelectedDates(date));
            WebCalendar1.SelectedDate = date;
        }
        day&amp;#43;&amp;#43;;
        date = new Date(year, month, day);
    }
}&lt;/pre&gt;
&lt;p&gt;Please kindly also have reviews on my sample to see the result and let me know your response.&lt;br /&gt;&lt;br /&gt;Regards,&lt;br /&gt;Hans.&lt;br /&gt;&lt;/p&gt;</description></item><item><title>highlight  all Sunday and Saturday in intersoft web calendar. </title><link>http://www.intersoftsolutions.com/Community/WebEssentials/highlight-all-Sunday-and-Saturday-in-intersoft-web-calendar/</link><pubDate>Tue, 28 May 2013 11:03:00 GMT</pubDate><dc:creator>Shahbazsonu</dc:creator><category>Web Calendar</category><description>&lt;p&gt;&lt;span style="font-family: calibri, arial, helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);"&gt;I am using intersoft &amp;nbsp;web Calendar but I need to select all Sunday and Saturday .&lt;/span&gt;&lt;br style="font-family: calibri, arial, helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);" /&gt;&lt;span style="font-family: calibri, arial, helvetica, sans-serif; font-size: 16px; background-color: rgb(255, 255, 255);"&gt;on page load.&lt;/span&gt;&lt;/p&gt;</description></item></channel></rss>