...

View Full Version : Javascript to limit characters displayed



Mell3122
02-02-2004, 10:36 PM
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

Roy Sinclair
02-02-2004, 10:40 PM
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.

RadarBob
02-03-2004, 04:10 AM
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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum