by Dina Hess
| Title: | Regular Expression and HTML |
| Date: | 06/03/04 (6 Posts) |
| Summary: | In CFMX, you can compact a lengthy regular expression that removes all HTML tags other than those starting with <input, <select or <textarea into a simple one-liner, like this: |
regexp = "<(?!/?(input|textarea|select|option)\b).*?>"; | |
| Title: | Session Variables Suddenly Stopped Working |
| Date: | 06/03/04 (8 Posts) |
| Summary: | Unlocked session and application variables generate an error if "strict locking validation" is enabled in the ColdFusion Administrator. Dave Carebetta suggests enabling this feature in the development environment to force programmers to write better code, then disabling it on the production server to eliminate the performance hit. |
| Title: | Returning XML via Webservice |
| Date: | 06/03/04 (10 Posts) |
| Summary: | Need to return an XML document as a string from a CFC webservice? Try this: |
<cffunction name="getNavigation" access="remote" returntype="any" output="false"> <cffile action="read" file="c:\inetpub\wwwroot\tk\gb\data\data1.xml" variable="myString"> <cfreturn xmlFormat(toString(myString))> </cffunction> | |