[thesite] Those pesky TEXTAREAs

aardvark roselli at earthlink.net
Mon Apr 29 09:42:01 CDT 2002

not to crap on your parade, man, cuz i like what you've done, but it
isn't really what i had in mind... i say what *i* had in mind, but i
think that applies to jeff and others...

the reason we went with the textarea to begin with was so that we
wouldn't have to see the layout blow-up... not blowing up the layout
required something that didn't quite exist, though...

we did talk about forced wraps, but shot it down for a couple

- code could not be cut-n-pasted and expected to work because
often code cannot be broken across multiple lines in scripting

- the number of characters is an arbitrary number, and cannot be
determined in a vacuum... assuming users at 640x480, with
custom font sizes, i think we found 20 characters was the limit,
and even then, it could still be too many...

not to mention, i'd rather not see any more server-side processing
on articles if possible... i'd rather see CSS take care of this mess...

> From: Simon Coggins <ppxsjc1 at nottingham.ac.uk>
> After reading some of the talk regarding the use of TEXTAREAs for code
> within articles, I decided to try to tackle the problem.
> I ended up with a fairly straightforward server side solution which
> involves adding newline characters to wrap long lines at the point
> when the article is inserted into the database.
> It's not complete by any means, and it's in PHP rather than Cold
> Fusion but let me know what you think anyway:
> http://members.evolt.org/simonc/lab/wordwrap.php
> Could this solve the problem?

More information about the thesite mailing list