Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    New to the CF scene
    Join Date
    Nov 2003
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Problem with a free asp-calendar

    I have writen a free ASP Calendar. That calendar works perfect, but the only thing i stumbled onto, was the coloring of special fields in the table.
    When i try to change the color of holidayfields, some other fields change automaticly to that same color. can someone please check what i am doing wrong. If you want to check it out, you can download a copy of the agenda on http://www.gravenrode.nl/downloads/agenda.zip

    if you surf to http://www.gravenrode.nl/agenda/diar..._date=17-Decem ber-2003 then you can see my problem in real-life. if you look close enough, then you will notice that in the top-left corner a green box. this green box has to bee blue. and that is my problem

    The file in wich the changes shoud be made is diary.asp. The database is office 2000 and contains some example data. The database also is prepared to save the vacation with the date. all that has to be done is change the color of the background of the cell where vacation is checked

    Read the included readmefile before you begin.

    Thanks in advance for your help

  • #2
    Regular Coder
    Join Date
    Aug 2002
    Location
    Hong Kong
    Posts
    124
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I had done the same program before.
    Analysis the coding in details and you will understand the concept in the calacnder design, especially on the view_day.asp
    The table design is written in ASP coding instead of HTML
    Last edited by victoria_1018; 11-18-2003 at 09:39 AM.

  • #3
    New to the CF scene
    Join Date
    Nov 2003
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I don't have a clue what you mean. could you please explain it a bit further to me what you mean, because my native language is Dutch.

  • #4
    Regular Coder
    Join Date
    Aug 2002
    Location
    Hong Kong
    Posts
    124
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Look at your codes on diary.asp
    Should be from line 160 onward.
    Look for the following codes:



    Dim sBGCOLOR
    sBGCOLOR = "#FFCCOO"


    For iDay = 0 To 6
    sBGCOLOR = "#FFCCOO"
    If Month(dtCurViewDay) = Month(dtCurViewMonth) Then
    If dtCurViewDay = dtToday Then sBGCOLOR = "#CCCC00"
    else
    sBGCOLOR = "#FFCCOO"

    End If
    Response.Write "<TD HEIGHT=50 bgcolor='" & sBGCOLOR & "' >"


    If Month(dtCurViewDay) = Month(dtCurViewMonth) Then
    If dtCurViewDay = dtToday Then
    sFontColor = "#CC3300"

    Else
    sFontColor = "#000000"
    End If


    The coding in dark red, will instruct to change the table font colour and background colour.
    Just modify the colour codes link #000000 and refresh the script, you will understand what I mean.

  • #5
    Senior Coder
    Join Date
    Jun 2002
    Location
    41° 8' 52" N -95° 53' 31" W
    Posts
    3,660
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Apparently you're messing with it still...

    Unable to open registry key 'Temporary (volatile) Jet DSN for process 0xa10 Thread 0xf54 DBC 0x219c014 Jet'.
    /agenda/diary.asp, line 5

    Have you got that figured out yet? Sounds like a permissions problem to me because that's usually the case with windows. You need to share that folder on the 'net with appropriate permissions.
    Last edited by whammy; 11-19-2003 at 02:47 AM.
    Former ASP Forum Moderator - I'm back!

    If you can teach yourself how to learn, you can learn anything. ;)

  • #6
    New to the CF scene
    Join Date
    Nov 2003
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I stepped off of the holiday idea, but i have 1 question left:

    is it possible to set this agenda to a different language without having problems? if i do it now, i get problems

  • #7
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,042
    Thanks
    0
    Thanked 251 Times in 247 Posts
    You mean to a different language like Dutch?
    Put this inside the <head> tag:

    <meta http-equiv="Content-Type" content="text/html;charset=ISO-8859-1">

    Just change to an appropriate charset.

  • #8
    New to the CF scene
    Join Date
    Nov 2003
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    thx. it works


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •