Using this code on a page to get the current date and then create an
embedded calendar chosing the correct month:

<script type="text/javascript">
            now = new Date();
            hour = now.getHours( );
            month = now.getMonth();
            day = now.getDate();
            year = now.getYear();
                if (month == 0)  ajaxpage('/intranet/oc/agencyintranet/
includes/january.asp', 'contentarea');  else
                if (month == 1)  ajaxpage('/intranet/oc/agencyintranet/
includes/february.asp', 'contentarea');  else
                if (month == 2)  ajaxpage('/intranet/oc/agencyintranet/
includes/march.asp', 'contentarea');  else
                if (month == 3)  ajaxpage('/intranet/oc/agencyintranet/
includes/april.asp', 'contentarea');  else
                if (month == 4)  ajaxpage('/intranet/oc/agencyintranet/
includes/may.asp', 'contentarea');  else
                if (month == 5)  ajaxpage('/intranet/oc/agencyintranet/
includes/june.asp', 'contentarea');  else
                if (month == 6)  ajaxpage('/intranet/oc/agencyintranet/
includes/july.asp', 'contentarea');  else
                if (month == 7)  ajaxpage('/intranet/oc/agencyintranet/
includes/august.asp', 'contentarea');  else
                if (month == 8)  ajaxpage('/intranet/oc/agencyintranet/
includes/september.asp', 'contentarea');  else
                if (month == 9)  ajaxpage('/intranet/oc/agencyintranet/
includes/october.asp', 'contentarea');  else
                if (month == 10) ajaxpage('/intranet/oc/agencyintranet/
includes/november.asp', 'contentarea');  else
                if (month == 11) ajaxpage('/intranet/oc/agencyintranet/
includes/december.asp', 'contentarea');
        </script>

I set this up in cms with an anchor tag as the path and can not seem
to get cms to generate anything. Has anyone done an embedded calendar
in CMS or used ajax in cms or manybe know why an anchor would not
work.

-- 
You received this message because you are subscribed to the Google Groups 
"RedDot CMS Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/reddot-cms-users?hl=en.

Reply via email to