Re: [WebDNA] Count Lines

This WebDNA talk-list message is from

2011


It keeps the original formatting.
numero = 106618
interpreted = N
texte = --Apple-Mail-15-258659327 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii It just autowraps in the div so there is no specific marker to use. I have a div with text loaded from a database in it. I have no control = over the length of the text and want to calculate or count the number of = lines it wraps to so I can hide all except a small segment at the = beginning until a user clicks on "more". I am using a show more link to expand the div to show the rest of the = text but if there is not enough text, there is no need to show the "show = more" Here's is an example of what I am doing: In this case the "more info" is required http://www.top3.com.au/designers/ben-mccarthy/ But here it is not, I need a way of determining if it needs to be shown, = counting chars is not accurate enough. http://www.top3.com.au/designers/adam-goodrum/ On 09/05/2011, at 9:40 PM, William DeVaul wrote: > What defines the lines? Is it something like counting 80 characters > or carriage returns? >=20 > On Mon, May 9, 2011 at 7:07 AM, Stuart Tremain = wrote: >> I have a problem where I need to count the lines of text in a
, = the contents are dynamic from a DB. >>=20 >> Any ideas ? >>=20 >> Regards >>=20 >> Stuart Tremain >> IDFK Web Developments >> AUSTRALIA >> webdna@idfk.com.au >>=20 >>=20 >>=20 >>=20 >> --------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us >> Bug Reporting: support@webdna.us >>=20 > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > Bug Reporting: support@webdna.us --Apple-Mail-15-258659327 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii It = just autowraps in the div so there is no specific marker to = use.

I have a div with text loaded from a database in it. I have no = control over the length of the text and want to calculate or count the = number of lines it wraps to so I can hide all except a small segment at = the beginning until a user clicks on "more".

I am using a show more = link to expand the div to show the rest of the text but if there is not = enough text, there is no need to show the "show = more"

Here's is an example of = what I am doing:
In this case the "more = info" is required

But here it is not, I = need a way of determining if it needs to be shown, counting chars is not = accurate enough.



On 09/05/2011, at = 9:40 PM, William DeVaul wrote:

What = defines the lines?  Is it something like counting 80 = characters
or carriage returns?

On Mon, May 9, 2011 at 7:07 = AM, Stuart Tremain <webdna@idfk.com.au> = wrote:
I have a problem where I need to = count the lines of text in a <DIV>, the contents are dynamic from = a DB.

Any ideas = ?

Regards

Stuart = Tremain
IDFK Web = Developments
AUSTRALIA
webdna@idfk.com.au
=




---------------------------------------------------------
This message is sent to you = because you are subscribed to
the mailing list <talk@webdna.us>.
To unsubscribe, E-mail to: <talk-leave@webdna.us>
archives: http://mail.webdna.us/l= ist/talk@webdna.us
Bug = Reporting: support@webdna.us

-------------------------------------------= --------------
This message is sent to you because you are subscribed = to
the mailing list <talk@webdna.us>.
To = unsubscribe, E-mail to: <talk-leave@webdna.us>
archi= ves: http://mail.webdna.us/l= ist/talk@webdna.us
Bug Reporting: support@webdna.us

= --Apple-Mail-15-258659327-- Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Count Lines (Stuart Tremain 2011)
  2. Re: [WebDNA] Count Lines (Olin Lagon 2011)
  3. Re: [WebDNA] Count Lines (Aaron Michael Kaczmarek 2011)
  4. Re: [WebDNA] Count Lines (Steve Craig 2011)
  5. Re: [WebDNA] Count Lines (Stuart Tremain 2011)
  6. Re: [WebDNA] Count Lines (William DeVaul 2011)
  7. Re: [WebDNA] Count Lines (Tom Duke 2011)
  8. [WebDNA] Count Lines (Stuart Tremain 2011)
--Apple-Mail-15-258659327 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii It just autowraps in the div so there is no specific marker to use. I have a div with text loaded from a database in it. I have no control = over the length of the text and want to calculate or count the number of = lines it wraps to so I can hide all except a small segment at the = beginning until a user clicks on "more". I am using a show more link to expand the div to show the rest of the = text but if there is not enough text, there is no need to show the "show = more" Here's is an example of what I am doing: In this case the "more info" is required http://www.top3.com.au/designers/ben-mccarthy/ But here it is not, I need a way of determining if it needs to be shown, = counting chars is not accurate enough. http://www.top3.com.au/designers/adam-goodrum/ On 09/05/2011, at 9:40 PM, William DeVaul wrote: > What defines the lines? Is it something like counting 80 characters > or carriage returns? >=20 > On Mon, May 9, 2011 at 7:07 AM, Stuart Tremain = wrote: >> I have a problem where I need to count the lines of text in a
, = the contents are dynamic from a DB. >>=20 >> Any ideas ? >>=20 >> Regards >>=20 >> Stuart Tremain >> IDFK Web Developments >> AUSTRALIA >> webdna@idfk.com.au >>=20 >>=20 >>=20 >>=20 >> --------------------------------------------------------- >> This message is sent to you because you are subscribed to >> the mailing list . >> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us >> Bug Reporting: support@webdna.us >>=20 > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > Bug Reporting: support@webdna.us --Apple-Mail-15-258659327 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii It = just autowraps in the div so there is no specific marker to = use.

I have a div with text loaded from a database in it. I have no = control over the length of the text and want to calculate or count the = number of lines it wraps to so I can hide all except a small segment at = the beginning until a user clicks on "more".

I am using a show more = link to expand the div to show the rest of the text but if there is not = enough text, there is no need to show the "show = more"

Here's is an example of = what I am doing:
In this case the "more = info" is required

But here it is not, I = need a way of determining if it needs to be shown, counting chars is not = accurate enough.



On 09/05/2011, at = 9:40 PM, William DeVaul wrote:

What = defines the lines?  Is it something like counting 80 = characters
or carriage returns?

On Mon, May 9, 2011 at 7:07 = AM, Stuart Tremain <webdna@idfk.com.au> = wrote:
I have a problem where I need to = count the lines of text in a <DIV>, the contents are dynamic from = a DB.

Any ideas = ?

Regards

Stuart = Tremain
IDFK Web = Developments
AUSTRALIA
webdna@idfk.com.au
=




---------------------------------------------------------
This message is sent to you = because you are subscribed to
the mailing list <talk@webdna.us>.
To unsubscribe, E-mail to: <talk-leave@webdna.us>
archives: http://mail.webdna.us/l= ist/talk@webdna.us
Bug = Reporting: support@webdna.us

-------------------------------------------= --------------
This message is sent to you because you are subscribed = to
the mailing list <talk@webdna.us>.
To = unsubscribe, E-mail to: <talk-leave@webdna.us>
archi= ves: http://mail.webdna.us/l= ist/talk@webdna.us
Bug Reporting: support@webdna.us

= --Apple-Mail-15-258659327-- Stuart Tremain

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Browser (agent) stats... (2004) RE: [WebDNA] Foreign characters (2009) (2009) Bug or syntax error on my part? (1997) Include from DB (2002) Truncated Sendmail (1998) PCS Frames (1997) Sending mail (was forms and variables) (1998) Generating Report Totals (1997) AppleScript does not work properly ... (2000) Different Email recipients? (1998) How big can WebCat go? (1999) Uploading very large image files (2003) WebCatalog for Dummies part 2 (2000) Replacing a Word (1999) WebCatalog-NT?'s (1996) problems with 2 tags shakur (1997) RE: IIS4b2 and WebCatalog b19 (1997) Showif for mulitple variations (1997) OT: Need some feedback, please. (2003) Make sure I understand this??? (1997)