We have definitely all been there at one point or another. I couldn't tell
you how many of those I've had to code for.

There are so many variables to account for too... such a headache.

Client configured fonts are a PAIN in these situations. Plus you have to
account for HTML in your count.

This for example: Click <a
href="http://www.google.com/#hl=en&source=hp&q=wow...+this+is+a+REALLY+reall
y+long+seach+string...+I+wonder+how+long+the+URL+will+be&aq=f&aqi=&aql=&oq=&
gs_rfai=CogqzCF4ETKyeG4m2hQSQ76yqCAAAAKoEBU_QGTXz&fp=5f0ee1fdeeb79b01"
title="Google Search">here</a>

The displayed text is really just "Click here" but it is obviously a much
longer string than those 10 characters.

Plus... you run the risk of cutting the string in the middle of the A tag.

So then what do you do? Strip HTML? Then the client (or designer) whines
that their bold text isn't showing up...

So then what? You filter out only specific HTML tags but not others? Or make
the clients enter the count when they create the entry?

It definitely becomes a pain. I feel for you.


-----Original Message-----
From: Sean Corfield [mailto:[email protected]] 
Sent: Monday, May 31, 2010 6:28 PM
To: cf-talk
Subject: Re: Variable Amount of text in a Fixed Size Box


On Mon, May 31, 2010 at 2:19 PM, Les Mizzell <[email protected]> wrote:
> The graphic designers I work with need to get out of their "print mode"
> when doing layouts!!! ... and they get the darned designs approved by
> the client *before* sending to me and going "see any issues here".

I sympathize. Over the years, I've had no end of frustrations with
designers who think in boxes like print, instead of in fluid zones
necessary for dynamic text :(
-- 
Sean A Corfield -- (904) 302-SEAN
Railo Technologies, Inc. -- http://getrailo.com/
An Architect's View -- http://corfield.org/

"If you're not annoying somebody, you're not really alive."
-- Margaret Atwood



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology-Michael-Dinowitz/dp/1430272155/?tag=houseoffusion
Archive: 
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:334162
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

Reply via email to