Re: OK, here's a new one
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 45497
interpreted = N
texte = Here you go.....The following will give you a maximum of 40 characters (which you can adjust toyour liking), so you don't end up with something like....Microsoft takes steps to aquire bigger market share, hires more ass.....=====snip======[text show=T]description_1=Microsoft takes steps to aquire bigger market share,hires more associates for sales and support[/text][math show=f]sentCharLength=0[/math][text]sent= [/text][listwords words=[description_1]&delimiters= ][showif [sentCharLength]<40][text]sent=[sent] [word] [/text][text]sentCharLength=[math][sentCharLength]+[countchars][word][/countchars][/math][/text][/showif][/listwords]
[sent]======end snip=======enjoy, RobertWJ Starck wrote:> Alain and Gary...>> Yeah, I thought of that, but [getchars] will give me partial words.> Might be a lesser of two evils, I suppose...>> -Will>> On Tuesday, November 19, 2002, at 03:52 PM, Gary Krockover wrote:>> > I've used this in similar instances:> >> >
[getchars> > start=1&end=30][description][/getchars].... | > >> > GK> >> >> > | Our site lists 6 products on the home page that are specials.> > |> > | A table is generated by search. Each cell in this table is another> > | table that looks like so:> > |> > |> > | ____________________> > | | | |> > | | | T |> > | | P |___________|> > | | | |> > | | | D |> > | |_______|____________|> > |> > | Where P is the product image, T is the Title of the Product and D is> > a> > | text description of varying length. Right now this mostly works fine,> > | and what I've done with the text description is to use [listwords] to> > | reel of the first 15 words of the description, like so:> > |> > | [listwords words=[description]&delimiters= ][showif> > | [index]<16][word][/showif] [/listwords]...> > |> > | This is OK, except for one thing. Since words are of differing> > lengths,> > | some descriptions end up longer than others, and it ends up looking> > | crappy visually. What I'd like to do is to parse enough text of each> > | description that each D box is essentially filled.> > |> > | I suppose I could fix the height of the box and fiddle with the> > number> > | of words parsed, but I was wondering of there was a spiffier way. I'm> > | wracking my brain here. Anyone with some ideas?> > |> > | TAM,> > |> > | -Will> >> >> > -------------------------------------------------------------> > This message is sent to you because you are subscribed to> > the mailing list
.> > To unsubscribe, E-mail to: > > To switch to the DIGEST mode, E-mail to> > > > Web Archive of this list is at: http://search.smithmicro.com/> >>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > Web Archive of this list is at: http://search.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Associated Messages, from the most recent to the oldest:
|
- Re: OK, here's a new one (Rob Marquardt 2002)
- Re: OK, here's a new one (Robert Wade 2002)
- Re: OK, here's a new one (Chris List Recipient 2002)
- Re: OK, here's a new one (Gary Krockover 2002)
- Re: OK, here's a new one (WJ Starck 2002)
- Re: OK, here's a new one (Dan Strong 2002)
- Re: OK, here's a new one (Tim Robinson 2002)
- Re: OK, here's a new one (WJ Starck 2002)
- Re: OK, here's a new one (Gary Krockover 2002)
- Re: OK, here's a new one (Alain Russell 2002)
- OK, here's a new one (WJ Starck 2002)
|
Here you go.....The following will give you a maximum of 40 characters (which you can adjust toyour liking), so you don't end up with something like....Microsoft takes steps to aquire bigger market share, hires more ass.....=====snip======[text show=T]description_1=Microsoft takes steps to aquire bigger market share,hires more associates for sales and support[/text][math show=f]sentCharLength=0[/math][text]sent= [/text][listwords words=[description_1]&delimiters= ][showif [sentCharLength]<40][text]sent=[sent] [word] [/text][text]sentCharLength=[math][sentCharLength]+[countchars][word][/countchars][/math][/text][/showif][/listwords]
[sent]======end snip=======enjoy, RobertWJ Starck wrote:> Alain and Gary...>> Yeah, I thought of that, but [getchars] will give me partial words.> Might be a lesser of two evils, I suppose...>> -Will>> On Tuesday, November 19, 2002, at 03:52 PM, Gary Krockover wrote:>> > I've used this in similar instances:> >> > [getchars> > start=1&end=30][description][/getchars].... | > >> > GK> >> >> > | Our site lists 6 products on the home page that are specials.> > |> > | A table is generated by search. Each cell in this table is another> > | table that looks like so:> > |> > |> > | ____________________> > | | | |> > | | | T |> > | | P |___________|> > | | | |> > | | | D |> > | |_______|____________|> > |> > | Where P is the product image, T is the Title of the Product and D is> > a> > | text description of varying length. Right now this mostly works fine,> > | and what I've done with the text description is to use [listwords] to> > | reel of the first 15 words of the description, like so:> > |> > | [listwords words=[description]&delimiters= ][showif> > | [index]<16][word][/showif] [/listwords]...> > |> > | This is OK, except for one thing. Since words are of differing> > lengths,> > | some descriptions end up longer than others, and it ends up looking> > | crappy visually. What I'd like to do is to parse enough text of each> > | description that each D box is essentially filled.> > |> > | I suppose I could fix the height of the box and fiddle with the> > number> > | of words parsed, but I was wondering of there was a spiffier way. I'm> > | wracking my brain here. Anyone with some ideas?> > |> > | TAM,> > |> > | -Will> >> >> > -------------------------------------------------------------> > This message is sent to you because you are subscribed to> > the mailing list .> > To unsubscribe, E-mail to: > > To switch to the DIGEST mode, E-mail to> > > > Web Archive of this list is at: http://search.smithmicro.com/> >>> -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to > Web Archive of this list is at: http://search.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://search.smithmicro.com/
Robert Wade
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:
Using Applescript to process WebCatalog functions (1998)
Problems appending to database (1997)
WebCatalog f2 Installation (1997)
WebDelivery: One step closer !! (1997)
[searchString] (1997)
WebCat2: Items xx to xx shown, etc. (1997)
[UPPERCASE] (1997)
Bookmarked URL with cart (1998)
Initiating NewCart (1997)
WC2.0 Memory Requirements (1997)
Field name-subcategory (1997)
Thanks for tips, more quest (1997)
Database wiped clean (2005)
New global preference ... ??? (2000)
Multiple cart additions (1997)
[ShowNext] (1997)
Possible Bug in 2.0b15.acgi (1997)
RE: formula.db, adding option prices (1997)
[WebDNA] Problem with SendMail - seems succesfull but nothing to recieve (2016)
[append] problem (1997)