Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Feb 2004
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    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

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    Wichita
    Posts
    3,880
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.

  • #3
    Regular Coder
    Join Date
    Jun 2002
    Location
    Round Rock, Texas
    Posts
    443
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •