cfcalendar error

This is a discussion on cfcalendar error within the Cold Fusion forums in Application Servers & Tools category; 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">...

Go Back   Application Development Forum > Application Servers & Tools > Cold Fusion

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 09-03-2008, 01:17 PM
idesdema
Guest
 
Default cfcalendar error

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">


Reply With Quote
  #2  
Old 09-03-2008, 11:24 PM
Azadi
Guest
 
Default Re: cfcalendar error

it worked for me as soon as i gave cfcalendar a proper name.

Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/
Reply With Quote
  #3  
Old 09-04-2008, 12:32 AM
idesdema
Guest
 
Default Re: cfcalendar error

Added the name...

Attribute validation error for tag CFINPUT.
The value of the attribute TYPE, which is currently "dateField", must be one
of the values:
TEXT,PASSWORD,HIDDEN,FILE,CHECKBOX,RADIO,BUTTON,SU BMIT,RESET,IMAGE.


Reply With Quote
  #4  
Old 09-04-2008, 12:37 AM
Azadi
Guest
 
Default Re: cfcalendar error

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/
Reply With Quote
  #5  
Old 09-04-2008, 12:44 AM
-==cfSearching==-
Guest
 
Default Re: cfcalendar error

idesdema wrote:
> Added the name...
> Attribute validation error for tag CFINPUT.
> The value of the attribute TYPE, which is currently "dateField", must be

one of the values:

> TEXT,PASSWORD,HIDDEN,FILE,CHECKBOX,RADIO,BUTTON,SU BMIT,RESET,IMAGE.


The error seems clear enough. The type "dateField" is not allowed. Did you
look at the documentation for <cfinput>? I suspect it explains why ..


Reply With Quote
  #6  
Old 09-04-2008, 12:52 AM
idesdema
Guest
 
Default Re: cfcalendar error

I think I am confused. I basically copied the livedocs code for cfcalendar. I
guess I don't understand how I get the calendar popup if I chance 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 new feature and can't figure it out.

Reply With Quote
  #7  
Old 09-04-2008, 01:35 AM
Azadi
Guest
 
Default Re: cfcalendar error

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/
Reply With Quote
  #8  
Old 09-04-2008, 10:00 AM
idesdema
Guest
 
Default Re: cfcalendar error

Couple things here... I am using cf7 so the datefield is not going to work.
Also, I agree on the limitations of the datefield. 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.



Reply With Quote
  #9  
Old 09-04-2008, 03:16 PM
-==cfSearching==-
Guest
 
Default Re: cfcalendar error

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...s/00000279.htm

<cfform name="myForm" format="flash">
<cfinput name="startDate" type="datefield" label="date:" mask="mm/dd/yyyy"/>
</cfform>

Reply With Quote
  #10  
Old 09-04-2008, 03:20 PM
idesdema
Guest
 
Default Re: cfcalendar error

2 errors


Line: 4
Char: 1
Error: Syntax error

Line: 17
Char: 1
Error: Object expected

Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 06:37 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.