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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tooltip not displaying all text

Status
Not open for further replies.

tshad

Programmer
Jul 15, 2004
386
US
I used JQuery to add "title" to my label which works fine.

But the text is being truncated. Perhaps because it is too long. But this is what I am getting from the system as an error.

I am getting from my exception message and am writing it out to the tooltip (title):

{"Message":"Banyon.Franks.Business_Objects.Account.SaveProtected\nPostalCodeID cannot be Null"}

But when I hover my mouse over the label, the what I get is:

{"Message":"Banyon.Franks.Business_Objects.Account.Sav...
\nPostalCodeID cannot be Null"}

How do I get the tooltip to show the whole message.

Also, how do I get the "\n" to behave as I line break. I also tried <br/> but it won't break - it just shows "<br/>" on the screen.

Thanks,

Tom
 
you need to post your code.

different browsers have different limits for the display of the title attribute.

for more control over tooltips use a libary like qtip2.

consider also storing data about an input in the data attributes rather than title. then use it dynamically.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top