Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

title attribute text limit

 
David samueal
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have a small doubt on TITLE attribute.

Actually in my application when i use title attribute for a component to display a large text, in IE 8, when mouse over into that component the title attribute can able to show upto 571 characters (including spaces).

Some words beyond 571 characters is getting truncated.

Is there any way to specify/Increase the TITLE attribute in HTML actually am using JSP here?

Or it is an browser compatibility?

I hope on you guys to find a solution for this unsolved problem.
 
Saurabh Pillai
Ranch Hand
Posts: 524
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am wondering why do you need that long page title. Is it not possible to represent the same information as part of page body?

I am assuming when you say component it means browser, that tooltip length when you mouse hover is browser dependent.
 
David samueal
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi. I meant to say TITLE attribute (E.g : <a href="#" title="myTitle">).

Not a HTML TITLE element <title></title>

And thanks for the conclusion
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64683
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The browser limits the amount of text that it will show in the flyout. There's nothing you can do about that.

Rather, you can use HTML, JavaScript and CSS to create your own. There are also many already-existing implementations or jQuery plugins to accomplish this.

If you want to see an Ajax-powered jQuery-enabled implementation, I develop one in chapter 8 of jQuery in Action. The sample code for the book is a free download here.
 
David samueal
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you Bear Bibeault !
 
Saurabh Pillai
Ranch Hand
Posts: 524
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
David samueal wrote: Hi. I meant to say TITLE attribute (E.g : <a href="#" title="myTitle">).

Not a HTML TITLE element <title></title>

And thanks for the conclusion


Oops, I misunderstood. Sorry :)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic