Break up your long word with the "soft break" tag <WBR>.
For example: Thisisalongwordbecausemyspacekeyisbroken
becomes: Thisisalong<WBR>wordbecausemy<WBR>spacekeyisbroken

If there is sufficient room to display the whole long word, the break
will have no effect. Otherwise it will break at the specified points.

Sure it will take a lot of CPU to scan and process the string. Solution:
do it in javascript on the user's browser before submitting the form.
Make the bugger pay for the overhead.

Regards: Ayudh

+--------------------------------------------------------------+
| Put money in your bank while you're on the road.             |
| Secure credit card payment by SMS messaging.                 |
| VeriPay mPOS from Xilo Online: http://www.xilo.com/mpos      |
+--------------------------------------------------------------+
----- Original Message ----- 
From: "John Bishop" <[EMAIL PROTECTED]>
To: "CFAussie Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, June 13, 2003 14:03
Subject: [cfaussie] Insert spaces in long words...?



**************************************************************************

Note: This e-mail is subject to the disclaimer contained at the bottom
of this message.

**************************************************************************
:
Hi guys,

I'm working on a site that allows users to enter a message into a
textbox, which is parsed (using CF_StripHtml tag from the MM Exchange)
to remove all HTML tags, then inserted into a DB table. The user is then
redirected to a page that displays the posts from the table they've just
posted to. Pretty basic stuff.

What I'm looking for is suggestions as to how to break long words (ie,
longer than 50 characters) into smaller words, by inserting spaces into
the string. Currently, if I post a long word with no spaces into the DB,
then it screws the table layouts on the page that displays the post, as
the text won't wrap.

I'm sure you guys have had to deal with this problem before... any
'best-practice' suggestions would be greatly appreciated!

Cheers all,

jb :)

:
****************************************************************************
****

The information transmitted in this message and attachments (if any)
is intended only for the person or entity to which it is addressed.
The message may contain confidential and/or privileged material.
Any review, retransmission, dissemination or other use of, or taking
of any action in reliance upon this information, by persons or entities
other than the intended recipient is prohibited.

If you have received this in error, please contact the sender and delete
this
e-mail and associated material from any computer.

The intended recipient of this e-mail may only use, reproduce, disclose or
distribute the information contained in this e-mail and any attached files,
with the permission of the sender.

This message has been scanned for viruses and cleared by MailMarshal.

********************************************************************
:


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/


---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]

MX Downunder AsiaPac DevCon - http://mxdu.com/

Reply via email to