This girl at school? She told me that gelatin is made from ground-up cow's feet and that every time you eat Jell-O there's some cow out there limping around without any feet. But I told her that I'm sure the cow is dead before they cut its feet off, right?

Dawn ,'Never Leave Me'


Buffistechnology 3: "Press Some Buttons, See What Happens."

Got a question about technology? Ask it here. Discussion of hardware, software, TiVos, multi-region DVDs, Windows, Macs, LINUX, hand-helds, iPods, anything tech related. Better than any helpdesk!


tommyrot - Aug 23, 2010 7:26:48 am PDT #14672 of 25501
Sir, it's not an offence to let your cat eat your bacon. Okay? And we don't arrest cats, I'm very sorry.

So... anyone know anything about turning on/off horizontal word wrap in an HTML textarea?

So far, I've found if I add

textarea { white-space: pre; }

to the page's stylesheet, then the horizontal word wrap gets turned off. But then it's impossible to enter more than one line (i.e. a carriage return does not produce a new line when horizontal word wrap is turned off.

So:

  • How do I turn horizontal word wrap off yet allow the user to use a carriage return to produce a new line?
  • If I get that to work, how do I use Javascript to turn the horizontal word wrap on and off?
  • Why does the above code work in a stylesheet but if I do the same thing in the textarea tag like so:

<textarea name='txtNote2' rows='14' cols='93' white-space: pre;>

it doesn't work?


Tom Scola - Aug 23, 2010 7:31:16 am PDT #14673 of 25501
Remember that the frontier of the Rebellion is everywhere. And even the smallest act of insurrection pushes our lines forward.

you have to do:

<textarea name='txtNote2' rows='14' cols='93' style='white-space: pre;'>


tommyrot - Aug 23, 2010 7:37:06 am PDT #14674 of 25501
Sir, it's not an offence to let your cat eat your bacon. Okay? And we don't arrest cats, I'm very sorry.

That works! Thanks Tom. Any idea on how to allow the user to force new lines when wordwrap is off?


Jon B. - Aug 23, 2010 8:05:15 am PDT #14675 of 25501
A turkey in every toilet -- only in America!

I'm not sure of exactly what you want, tommyrot, but this page might help: [link]


Seska (the Watcher-in-Training) - Aug 23, 2010 8:10:57 am PDT #14676 of 25501
"We're all stories, in the end. Just make it a good one, eh?"

I am in desperate need of a new laptop. Several years of heavy use and occasional dropping on the floor are taking its toll. This one has been running quite slowly, and I don't know whether that would be the RAM or the speed of the processor. Any easy way I can find out what's responsible for the sluggishness?


Dana - Aug 23, 2010 8:14:21 am PDT #14677 of 25501
I'm terrifically busy with my ennui.

Do you periodically run a virus checker and a malware checker?


Seska (the Watcher-in-Training) - Aug 23, 2010 8:14:53 am PDT #14678 of 25501
"We're all stories, in the end. Just make it a good one, eh?"

Yep, both of those.


le nubian - Aug 23, 2010 8:24:56 am PDT #14679 of 25501
"And to be clear, I am the hell. And the high water."

have you run cccleaner?


Seska (the Watcher-in-Training) - Aug 23, 2010 8:36:23 am PDT #14680 of 25501
"We're all stories, in the end. Just make it a good one, eh?"

Is that the disk cleanup and defragmentation tools in the control panel? I do that a lot too.


le nubian - Aug 23, 2010 8:40:53 am PDT #14681 of 25501
"And to be clear, I am the hell. And the high water."

I think it is a 3rd party free program. Not anything that installs with Windows.