Title:
Bug 75864:first <cfscript> example on Page 16 of "Centaur Beta1 Developer Guide
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Da Li / Li, Da (griphold)
Created: 03/11/2009
Components: Documentation, Examples
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 /
Priority/Frequency: Major / Unknown
Locale/System: English / Win All
Vote Count: 0
Problem:
first <cfscript> example on Page 16 of "Centaur Beta1 Developer Guide.pdf":
1. line 1: wrong variable name, "h" should be "m".
2. words were incorrectly broken in the next few lines.
3. inline comments don't wrap well, which degrades readability.
4. the last line of script is incomplete.
---------------------------
<cfscript>
h = new http();
//mail service
m.setTo("x@adobe.com"); //set attribut e u sin g i mplicit setter
m.setSubject("Hi");
m.setBody("test mail"); // users need to use ' b ody ' to specify
cfmail and cf mailpart content
m.addparam(file="#E xpandPath('test.txt')#"); //add cfmail param tags
m.addPart(type="html",ch arset="u tf-8",bo dy="som e
mailpart content"); //add cfmailpart tags
...
--------------------------------
r.getPrefix().succeeded ? WriteOutput("List Directory operation successful") :
</cfscript>
Method:
Result:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3037802
External Customer Info:
External Company:
External Customer Name: Li, Da
External Customer Email: 5BCE71234476CED099201549
External Test Config: 03/11/2009
Attachments:
Comments: