By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,341 Members | 1,700 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,341 IT Pros & Developers. It's quick & easy.

Script to condense a line of text

P: n/a
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
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
In article <43*************************@posting.google.com> ,
cv******@dslextreme.com says...
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.

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
http://hyweljenkins.co.uk/
http://hyweljenkins.co.uk/mfaq.php
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.