Welcome to the { mindfrost82.com } forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Software > Adobe Software > Dreamweaver

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-06-2008, 11:09 PM
Daniel
 
Posts: n/a
Need help with displaying only part of a message as summary

I want to use an existing table that contains a summary for the item
details..

But on my page i want to display say the first 6 words or 35 characters as a
summary for an item, and use that as the link to the details page...

Not sure how to search for this, if someone can point me in the right
direction on what to search for?


Current summary:
this item is a great addition to your purchase and has alot of extra
features

Wanted summary:
This item is a great addition to........

i dont want to have to create a new table for the client to add the
information again, i want to use the existing data and just display what i
want on the page..





--
ASP, SQL2005, DW8 VBScript, Visual Studio 2005, Visual Studio 2008


Reply With Quote
  #2 (permalink)  
Old 08-07-2008, 04:18 AM
Daniel
 
Posts: n/a
Re: Need help with displaying only part of a message as summary

that seems to work great..
thanks...

by chance is there a way to do this but allow the last word to be complete?
Example:

Currently:
Today the weather was gr...

Would like:
Today the weather was great...

--
************************************************
ASP, SQL2005, DW8 VBScript, Access
"bregent" <webforumsuser@macromedia.com> wrote in message
news:g7d8v5$o3i$1@forums.macromedia.com...
> In VBScript you would use the Left function to grab how ever many
> characters you want from the left hand side of a string. That's it.



Reply With Quote
  #3 (permalink)  
Old 08-07-2008, 06:12 AM
bregent
 
Posts: n/a
Re: Need help with displaying only part of a message assummary

>by chance is there a way to do this but allow the last word to be complete?

There is no VBScript functions for this, but you should be able to build one
easily with just a few lines of code by searching for the space character.
Start by setting up a loop and use the loop variable as the length argument of
the Left function. Initialize the loop to whatever you want the minimum
character length to be - say 30 for example.

Test the character at the loop counter position (use the Mid function) and if
it's the space, stop looping. If it's not a space, increment and then test
again. Once you find the position of the space, use the counter value as the
argument to the Left function.


Reply With Quote
  #4 (permalink)  
Old 08-07-2008, 03:40 PM
Daniel
 
Posts: n/a
Re: Need help with displaying only part of a message as summary

Cool, ill have to play around with that.. thanks..

--
ASP, SQL2005, DW8 VBScript, Visual Studio 2005, Visual Studio 2008
"bregent" <webforumsuser@macromedia.com> wrote in message
news:g7e07c$h00$1@forums.macromedia.com...
> >by chance is there a way to do this but allow the last word to be
> >complete?

>
> There is no VBScript functions for this, but you should be able to build
> one
> easily with just a few lines of code by searching for the space character.
> Start by setting up a loop and use the loop variable as the length
> argument of
> the Left function. Initialize the loop to whatever you want the minimum
> character length to be - say 30 for example.
>
> Test the character at the loop counter position (use the Mid function) and
> if
> it's the space, stop looping. If it's not a space, increment and then test
> again. Once you find the position of the space, use the counter value as
> the
> argument to the Left function.
>
>



Reply With Quote
  #5 (permalink)  
Old 08-07-2008, 05:47 PM
chris
 
Posts: n/a
Re: Need help with displaying only part of a message as summary

Do not use form mail I used to use it and it nearly brought the sever down
there is a big hole in it that allows spammers to utilize it and send spam
using your sever. it is better to use php to send your form with sendmail



"Daniel" <dan_c@h.com> wrote in message
news:g7d7g2$mjo$1@forums.macromedia.com...
>I want to use an existing table that contains a summary for the item
>details..
>
> But on my page i want to display say the first 6 words or 35 characters as
> a summary for an item, and use that as the link to the details page...
>
> Not sure how to search for this, if someone can point me in the right
> direction on what to search for?
>
>
> Current summary:
> this item is a great addition to your purchase and has alot of extra
> features
>
> Wanted summary:
> This item is a great addition to........
>
> i dont want to have to create a new table for the client to add the
> information again, i want to use the existing data and just display what i
> want on the page..
>
>
>
>
>
> --
> ASP, SQL2005, DW8 VBScript, Visual Studio 2005, Visual Studio 2008
>



Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Software > Adobe Software > Dreamweaver


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 06:28 AM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Advertising | Credit Cards | Equity | Loans | Unblock Myspace



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114