Hi all,
I’m trying to display an excerpt of text truncated and followed by an ellipse like such:
2004-01-12 – Called the Client at 12:00pm with no…
2004-01-14 – Called the Client at 3:00pm with no res…
So that I can give the users a summarized list of text from a database of log events.
I'd like to accomplish this with the following constraints:
[ul][li]The font cannot be a fixed width font[/li]
[li]I'd like to truncate each log in the database at a specific position, as opposed to a number of characters[/li]
[li]I don't want to use IFRAMES... I want to keep everything on the same page.[/li][/ul]
I'm stuck on the part of the fact that our web site standard does not use a fixed width font (who would want to use that? so hard to read!)
My initial idea was to use the Left(strEvent, 40) function to get an excerpt of the text, then simply append ... afterwards to indicate there's more text once the user clicks and is sent to a detailed page...
Obviously... just taking the left most 40 characters from the DB will produce uneven results.
Any ideas about where I can start looking to solve this issue?
Earnie Eng
I’m trying to display an excerpt of text truncated and followed by an ellipse like such:
2004-01-12 – Called the Client at 12:00pm with no…
2004-01-14 – Called the Client at 3:00pm with no res…
So that I can give the users a summarized list of text from a database of log events.
I'd like to accomplish this with the following constraints:
[ul][li]The font cannot be a fixed width font[/li]
[li]I'd like to truncate each log in the database at a specific position, as opposed to a number of characters[/li]
[li]I don't want to use IFRAMES... I want to keep everything on the same page.[/li][/ul]
I'm stuck on the part of the fact that our web site standard does not use a fixed width font (who would want to use that? so hard to read!)
My initial idea was to use the Left(strEvent, 40) function to get an excerpt of the text, then simply append ... afterwards to indicate there's more text once the user clicks and is sent to a detailed page...
Obviously... just taking the left most 40 characters from the DB will produce uneven results.
Any ideas about where I can start looking to solve this issue?
Earnie Eng