• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Display text upto some extend?

 
Ranch Hand
Posts: 246
Firefox Browser Oracle
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My question is i want to limit the number of charecters to display one the screen from long screen
 
reply
    Bookmark Topic Watch Topic
  • New Topic