MX Calendar Forum :: How to validate MX Calendar

This thread was displayed: 0 times


Starting with 17th May 2007, Adobe Systems will stop offering support for any version of the discontinued InterAKT products. As a result, we will not answer to new support incidents starting with May 17th, 2007. Pending support incidents will still be followed in order to be closed. The product forums will remain open and be transformed in user-to-user forums. The general forums will be made read-only and not allow new posts or comments.

For more information about the affected products visit: www.interaktonline.com/Support/

View Threaded Show descending
Matthew Muro
04-30-2007 20:26:27 GMT +2

I have just taken the time to sort through the MX Calendar code in order to comply with W3C Validation.  I figured I couldn't be the only one, so I wanted to post my changes for everyone to use.

The following files are the only ones that I changed:

  • CAL.asp
  • CAL_functions.inc.asp
  • CAL_ViewBase.class.asp
  • KT_functions.inc.asp

First we will deal with the ampersand URL operator which was not properly encoded.

In file CAL_functions.inc.asp, replace "&" with "&" at the following lines:

  • 463
  • 464
  • 489

In the file CAL_ViewBase.class.asp, replace "&" with "&" at the following lines:

  • 94
  • 144
  • 147

In the file KT_functions.inc.asp, replace "&" with "&" at the following lines:

  • 291
  • 337


Now that we have that taken care of, it is time to focus on getting rid of that extra <tr class="weeks_cal"></tr> that gets added onto the end of the last week.  This applies to the nugget as well as the full calendar in month view.

In file CAP.asp, navigate to line 305:

                    If j mod 7 = 0 Then
                        Response.write "</tr><tr class=""weeks_cal"">"   
                    End If

Now, replace the Response.write section so everything looks like this:

                    If j mod 7 = 0 Then
                        If j = 35 Then
                        'This ensures another row isn't written after the last day
                        Else
                        Response.write "</tr><tr class=""weeks_cal"">"   
                        End If
                    End If

Repeat the same steps in CAL.asp at line 526.


After making the changes, I validated successfully in HTML 4.01 Transitional.

Back | Reply | Quote | Top
© Adobe Systems Romania. All rights reserved.