Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Display text upto some extend?

 
mallikarjun dontamsetti
Ranch Hand
Posts: 246
Firefox Browser Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am practicing JSP and i want to know how to display a text upto some extend (like "Last Post" in JavaRanch) after that dots (.....) can any one tell me please.
thanks in advance.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64827
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You'll need to explain more clearly what you are trying to accomplish.
 
mallikarjun dontamsetti
Ranch Hand
Posts: 246
Firefox Browser Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am developing an application in user grid page the user will see like bellow formate

user name Address courses Description
---------------------------------------------------------------------
1. wwww jdsf,sdjf,kds java sdkjfffffffff jdsf dsjfsd hf dsj fhjdfsf hjsdf sjd fsdfjdsfdsjf sdfsjdfjsdf sdf dsjfsdf sdfjdsfs sdnsd fsdf ds.
2. sjdfjsk sdkj,sjdfsdj .net dsfsdkf sd fsdf ds f sdf s df sdf dsf hds fh dsfjsdfndsa f sadf nsdfas df s dfsd fas df sd f dsf dsf ds f sdfk ks df sdjk.



like the above but i want to display description upto some extend after that i want to add some dots (....) when some one clicks on that particular user it will display all the description.
how can i achieve that. (Now my code is displaying all the description and when some one clicks on it is displaying full data of user)
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64827
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ah, now I think I understand. You can use JSP to set up the HTML and JavaScript markup, but you'll use JavaScript to manipulate CSS to show and hide the "extended" text.
 
mallikarjun dontamsetti
Ranch Hand
Posts: 246
Firefox Browser Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please give me some examples or links. and the data is comming from data base.
thanks in advance
 
mallikarjun dontamsetti
Ranch Hand
Posts: 246
Firefox Browser Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My question is i want to limit the number of charecters to display one the screen from long screen
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic