I would imagine violence is the best alternative
I think I would shoot the spec writer
Seriously, I would demo this to someone who CAN modify the specs, using a
slow machine with little ram, and a dial up connection.
Call Guinness if the monstrosity works, even marginally acceptable.
-----Original Message-----
From: Brian Fox [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 25, 2001 10:28 AM
To: CF-Talk
Subject: Compacting .cfm files
Sorry if this is beating a dead horse. A search of the archives brought up
similar questions, but didn't really approach a solution.
I have a form that contains as many as 200 select boxes with about 6 options
each and 200 more input boxes. I guess that there is some type of resource
crunch (memory, widget handles, who knows) that causes the following error:
when scrolling a large form, the select boxes begin to smear vertically.
They become clumped together and function oddly (some still seem to work,
although I can't tell what 'line' they belong to).
It's in the project specs that I cannot break the form up... which throws
out the 'display records 1-20 21-40' type solutions.
The only thing I can think to do is tighten the cfm code up. Our shop is
indent happy for readability. The indenting produces a LOT of whitespace
(perhaps bloating the code as much as 100%). I've already added <cfsetting>
tags to squash output on custom tags, queries, etc. But there is still a
lot of whitespace in the other 'normal' code.
Are there any utilities to obliterate whitespace in cfm files? Er,
something along the lines of turning an indented file into a really long
single string? Is there a code beautifier to do the opposite? Is this
approach worthwhile?
Thanks,
Brian
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at
http://www.fusionauthority.com/bkinfo.cfm
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists