Skip to main content
September 3, 2008
Question

cfcalendar error

  • September 3, 2008
  • 12 replies
  • 1703 views
INVALID_CHARACTER_ERR: An invalid or illegal XML character is specified.

12 : <cfcalendar name="" selecteddate="#form.selectdate#" startrange="#form.startdate#" endrange="#form.enddate#" mask="MM/DD/YYYY" daynames="S,M,T,W,T,F,S" monthnames="January, February, March, April, May, June, July, August, September, October, November, December" width="200" height="150">
13 : <cfinput name="startdate" type="datefield">
14 : <cfinput name="enddate" type="datefield">
    This topic has been closed for replies.

    12 replies

    Inspiring
    September 5, 2008
    just ask them to check that an IIS virtual directory pointing to the
    CFIDE folder is created for your website.

    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/
    September 5, 2008
    Hi again. I am convinced that something needs to be fixed on the server. Time to log a ticket with Hostmysite.
    Inspiring
    September 5, 2008
    idesdema wrote:
    > Hi again. I am convinced that something needs to be fixed on the server.
    > Time to log a ticket with Hostmysite.


    Azadi wrote:
    > is your CFIDE folder properly mapped in your webserver/website?
    > did you test your code in FireFox+Firebug?

    Azadi's first response did not appear until after I posted, but I suspect he is 100% correct.
    Inspiring
    September 5, 2008
    this worked in IE7 with no doctype, html, head or body tags:

    <cfform name="form1">
    <cfcalendar name="selectedDate1" selecteddate="09/01/2008"
    mask="MM/DD/YYYY"
    daynames="S,M,T,W,T,F,S" monthnames="January, February, March, April, May,
    June, July, August, September, October, November, December" width="200"
    height="150">
    <cfinput name="startdate1" type="text">
    <cfinput name="enddate1" type="text">
    </cfform>
    <br />
    <br />
    <cfform name="form2">
    <p>Start Date: <cfinput name="startdate2" type="datefield"></p>
    End Date: <cfinput name="enddate2" type="datefield">
    </cfform>

    is your CFIDE folder properly mapped in your webserver/website?
    did you test your code in FireFox+Firebug?

    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/
    September 4, 2008
    Inspiring
    September 5, 2008
    You did not answer the question about the error. What type of error is it? It does not look like your standard CF error.

    I did not do anything special with the code. It worked exactly as is - no extra code or tags, with MX 7,0,2,142559. Are you able to use flash forms at all, like one with a single "text" field?
    September 4, 2008
    September 4, 2008
    2 errors


    Line: 4
    Char: 1
    Error: Syntax error

    Line: 17
    Char: 1
    Error: Object expected
    Inspiring
    September 4, 2008
    idesdema wrote:
    > 2 errors
    > Line: 4
    > Char: 1
    > Error: Syntax error

    What type of error is that? It looks like a javascript error to me.

    Did you run the _exact_ example posted?
    September 4, 2008
    Couple things here... I am using cf7 so the datefield is not going to work is it? I did try that approach with my form format="flash" and still got the same error.

    Also, I agree on the limitations of the datefield popup. However, I'll be using it for a very small timeframe and in this case it presents a good option for data validation and improved user experience. I don't want to get into jquery... you already know this!!! :)
    Inspiring
    September 4, 2008
    idesdema wrote:
    > Couple things here... I am using cf7 so the datefield is not going to work is it? I did try that
    > approach with my form format="flash" and still got the same error.

    The documentation says datefield is only allowed with flash forms. Are you certain you are using format="flash"? I tried the example from the documentation and it works fine with MX 7,0,2,142559 .
    http://livedocs.adobe.com/coldfusion/7/htmldocs/00000279.htm

    <cfform name="myForm" format="flash">
    <cfinput name="startDate" type="datefield" label="date:" mask="mm/dd/yyyy"/>
    </cfform>
    Inspiring
    September 4, 2008
    you do not need the cfcalendar tag to have a pop-up calendar - just need
    a datefield type cfinput:

    <cfform name="form2">
    Start Date: <cfinput name="startdate2" type="datefield">
    </cfform>

    i personally see little value in cfcalendar tag in html forms. i also do
    not like the limited functionality of datefield pop-up calendars, like
    in order to go to a different year you have to scroll through all the
    months! they should have made the month and year as drop-down selectors.

    my personal favourite is the datepicker jquery plug-in, which is part of
    jQueryUI ( http://ui.jquery.com/): http://docs.jquery.com/UI/Datepicker


    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/
    September 4, 2008
    I use cfinput all the time. I am confused on cfcalendar... I basically copied the livedocs code for cfcalendar. I guess I don't understand how I get the calendar popup if I change the cfinput type.

    I am going bonkers over here. Really I just want a basic sample of how to use cfcalendar. I am all excited about the tag and yet can't figure it out. That's why I don't understand the livedocs code not working for me. Usually its pretty straightforward. I think I may be trying to use a flash form on an html page.

    I dunno... A very basic example would help me in this case.
    Inspiring
    September 4, 2008
    datefield cfinput type in html forms is supported in cf8 only.
    in cf mx 7 datefield type is supported in flash form only.
    before cf mx 7 datefield type did not exist.

    Azadi Saryev
    Sabai-dee.com
    http://www.sabai-dee.com/