> definition of inane: 'lacking sense or substance'
> 
> A client has downloaded their CF site. As it is, the CF 
> server does not throw any errors on any of the pages from the 
> site. However, the client has dreamweaver and they have run 
> code validation on it. They are concerned with all of the 
> errors that the dreamweaver code validation is showing. I 
> have said that the code validation is not perfect and it 
> shows errors when there really isn't.
> 
> I don't bother with dreamweaver. I just like  plain HomeSite. 
> Out of curiousity, I just checked a few pages with the code 
> validation in HomeSite and it's showing  up with errors that 
> are not really there like 'cfhtp tag is missing optional 
> closing tag', 'there is a missing <td> tag' - I check and 
> there really isn't. I have some conditional <cfif> code in 
> <input> tag and it's throwing up an error that it's not a 
> valid attribute - I'm expiring a cookie with 'now' and the 
> error says it's missing the value  attribute - and on and on 
> like that.
> 
> What is your take code validation? What do I say when the 
> client wants code that passes the code validation test?

A CF application consists of a set of programs in one language, CFML, each
of which generates output in another language, typically HTML or XHTML. So
it's a bit hard to just talk about validation without specifying what
language you're trying to validate. A valid CFML program can generate
invalid HTML.

So, typically, you're only really interested in validating the generated
output, and you can only do that by running each CFML program. If the
program fails to run, and you get a parsing error, well in that case your
CFML isn't valid!

That said, if you want your CFML code to run well on newer and older
versions of CF, you'll want it to be valid on all of those versions. For
example, the CFCOOKIE tag you mentioned won't work on some versions of CF if
you don't specify the VALUE attribute, even if you just want to delete the
cookie. I ran into that exact situation one time.

Dave Watts, CTO, Fig Leaf Software
http://www.figleaf.com/

Fig Leaf Software provides the highest caliber vendor-authorized 
instruction at our training centers in Washington DC, Atlanta, 
Chicago, Baltimore, Northern Virginia, or on-site at your location. 
Visit http://training.figleaf.com/ for more information!


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Logware (www.logware.us): a new and convenient web-based time tracking 
application. Start tracking and documenting hours spent on a project or with a 
client with Logware today. Try it for free with a 15 day trial account.
http://www.houseoffusion.com/banners/view.cfm?bannerid=67

Message: http://www.houseoffusion.com/lists.cfm/link=i:4:199436
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to