aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes title attribute text limit Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "title attribute text limit" Watch "title attribute text limit" New topic
Author

title attribute text limit

David samueal
Greenhorn

Joined: Aug 03, 2011
Posts: 19
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

Joined: Sep 12, 2008
Posts: 507
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

Joined: Aug 03, 2011
Posts: 19
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

Joined: Jan 10, 2002
Posts: 61239
    
  66

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
David samueal
Greenhorn

Joined: Aug 03, 2011
Posts: 19
Thank you Bear Bibeault !
Saurabh Pillai
Ranch Hand

Joined: Sep 12, 2008
Posts: 507
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 :)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: title attribute text limit