Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

which tag in html

Status
Not open for further replies.

prachi143

Programmer
Aug 19, 2002
6
DE
Hiii,

If suppose in a textbox...the value i m displaying is too long. I only need to display something like this ex: someone@micros..... not the full text like ex: someone@microspan.com

How can i acheive this??
Please
 
If you want to limit the number of characters, do this:
<input type=&quot;text&quot; maxlength=&quot;12&quot;>
Otherwise, I think this is what you want:
<input type=&quot;text&quot; style=&quot;width:100px;&quot;>

Rick
 
Thanks for ur reply.
But, i think that will not solve my problem. Let me clear my question. If suppose,i have a comment field..where user will write a few lines. When i will show them back to the user by accessing it from database. I don't want to show the user the whole comment. While, i want to show the user a starting few words with the trailing '...'

for ex: this is my feed....

I hope i m clear this time.
please respond.
thanks
 
if you are selecting the data from a DB then simple take the data and give a variable that value. then as long as this is ASP use the left function to extract a portion of the variables contents out and concatinate the ... to that variable.
this is if you are using ASP/VBScript though. if not you need to specify those details as well.

left function syntax is
Left(string, length) A language that doesn't affect the way you think about programming is not worth knowing.
admin@onpntwebdesigns.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top