Script to condense a line of text

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Chuck

    #1

    Script to condense a line of text

    I have a form that pulls info from a database. My problem is with the
    setup of the form if it pulls to much information it throws the whole
    balance off and messes the table up.

    I am looking for a script like that will cut off the line after a
    certain amount of characters then possibly add a ... instead of the
    rest of the text.

    Thanks for any help or ideas.

    Chuck
  • Hywel Jenkins

    #2
    Re: Script to condense a line of text

    In article <435301c5.03091 81420.c5f0066@p osting.google.c om>,
    cvillard@dslext reme.com says...[color=blue]
    > I have a form that pulls info from a database. My problem is with the
    > setup of the form if it pulls to much information it throws the whole
    > balance off and messes the table up.
    >
    > I am looking for a script like that will cut off the line after a
    > certain amount of characters then possibly add a ... instead of the
    > rest of the text.
    >[/color]
    You need to do this with your server-side script. There's no point
    sending it to the client if you're not going to use is.

    Anyway, a quick squiz at the JS docs would have given you a list of
    string functions.

    --
    Hywel I do not eat quiche


    Comment

    Working...