| Title: | Can CFLOGIN Work Across Browser Instances? | |
| Date: | 04/30/03 13 Posts | |
| Summary: | CF gurus discuss why CFLOGIN, which relies on a "session" cookie, should or should not work across multiple browser sessions on a single client. A reference to RFC 2965 is included as a resource for standards on state maintenence. | |
| Title: | DateFormat() Question | |
| Date: | 04/30/03 15 Posts | |
| Summary: | You can update dates stored in a varchar field with irregular formats like SEP 02, DEC98, or SEPT98 to a "YYYY, MMMM" format using:
| |
| Title: | Evaluate() and CFIF | |
| Date: | 04/30/03 9 Posts | |
| Summary: | In a list loop over FORM.fieldnames, you can skip a block of code where the fieldname is an empty string by using <cfif len(trim(form[i]))>. Array syntax is suggested as a replacement for Evaluate(). A brief tutorial that compares structures to arrays is included. | |
| Title: | Handling MS Word "Smart Quotes" | |
| Date: | 04/30/03 12 Posts | |
| Summary: | Scrub "smart quotes" from data that has been cut from a Word document by replacing the offending characters with their ASCII decimal equivalents. But if your application and database are configured to handle the Unicode character set, "smart quotes" shouldn't be a problem. | |
| Related: |
8000+ ASCII Range? | |
| Title: | MIME Type of Image/pjpeg? | |
| Date: | 04/30/03 12 Posts | |
| Summary: | PJPEG stands for "progressive JPEG" and uses a distinct "image/jpeg" MIME type. You can specify multiple acceptable file types in CFFILE by providing a comma-delimited list of MIME types. | |
| Title: | The evils of Evaulate() | |
| Date: | 04/30/03 13 Posts | |
| Summary: | Evaluate() is generally used to determine the value of a dynamic variable name, so you don't need to apply it to a mathematical expression like this:
#url.StartSearch + (getTickets.RecordCount - 1)# And although CFMX supports the direct CFOUTPUT of this type of expression, CF 5 developers will need to use the following method to output: <CFSET num = url.StartSearch + getTickets.Recount -1> <CFOUTPUT>#num#</CFOUTPUT> | |