Go Back   CodingForums.com > :: Client side development > JavaScript programming

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 02-02-2004, 09:36 PM   PM User | #1
Mell3122
New to the CF scene

 
Join Date: Feb 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Mell3122 is an unknown quantity at this point
Question Javascript to limit characters displayed

Hello All,
I am new to javascript so hopefully I will be clear enough on what I would like to do, any ideas or suggestions are greatly appreciated.

Within a webpage, I am displaying data from a field in an Acess table. The field name for example is Details. Details can contain a lot of data and I want to limit the display to the first 100 characters.

Any ideas or suggestions on how I can do this with javascript? If I need to provide more information, please advise.

Thanks
Mell3122 is offline   Reply With Quote
Old 02-02-2004, 09:40 PM   PM User | #2
Roy Sinclair
Senior Coder

 
Join Date: Jun 2002
Location: Wichita
Posts: 3,880
Thanks: 0
Thanked 0 Times in 0 Posts
Roy Sinclair will become famous soon enough
If the data is coming from an Access database then you've got some server side script that sends the data and that script is what you should be modifying to limit the output to the first 100 characters.
__________________
Check out the Forum Search. It's the short path to getting great results from this forum.
Roy Sinclair is offline   Reply With Quote
Old 02-03-2004, 03:10 AM   PM User | #3
RadarBob
Regular Coder

 
Join Date: Jun 2002
Location: Round Rock, Texas
Posts: 443
Thanks: 0
Thanked 0 Times in 0 Posts
RadarBob is an unknown quantity at this point
Quote:
Originally posted by Roy Sinclair
If the data is coming from an Access database then you've got some server side script that sends the data and that script is what you should be modifying to limit the output to the first 100 characters.
Additionally, the code or HTML where the data was entered should have limited the size to 100. Also you can specify the field size in Access. All the input, output, datastore functionality should always use the same field sizes.
RadarBob is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 04:51 AM.


Advertisement
Log in to turn off these ads.