Visio 2003 tooltip text when saved as web page

S

Scott

The code produced by Visio 2003 "Save as web page" truncates the displayed
tooltip text at 50 characters (followed by an elipsis to indicate that there
is additional text).

Has anyone explored the web page javascript to know how to change the max
character length for tooltip text? I'd like to write code to modify the
length -- that's the easy part -- but don't know javascript well enough to be
able to locate the length-setting function.

Thanks
 
S

Scott

Yes -- I am referring to screentips in HTML. The amount of text displayed is
truncated and I'm looking for the place in the javascript code that is doing
the truncating. I want to increase the limit.
 
P

Paul Herber

The code produced by Visio 2003 "Save as web page" truncates the displayed
tooltip text at 50 characters (followed by an elipsis to indicate that there
is additional text).

Has anyone explored the web page javascript to know how to change the max
character length for tooltip text? I'd like to write code to modify the
length -- that's the easy part -- but don't know javascript well enough to be
able to locate the length-setting function.

Are you sure that the text isn't being truncated by the SaveAsHTML
tool? Apart from that the text isn't displayed by Javascript, it's the
title attribute the HTML IMG tag which is used to display a short item
of text when the mouse is hovered over an image. Some browsers limit
the amount of text shown.
 
S

Scott

Paul,

Good question. I don't know for sure where the truncation is occurring. I've
been assuming it was done in the Visio-created javascript but perhaps it is
happening earlier -- in the SaveAsHTML function. I'll look into that.

Scott
 
J

John Goldsmith

Hello Scott,

I looked at this a little while ago and echo Paul's observation. In my
tests I found 60 characters to be the limit using IE7.

I don't think the JavaScript is involved. There's an 'UpdateTooltip'
function in the main document, but this only takes the existing string in
the title attribute, which is already truncated.

My assumption is that Paul's right about the API doing the truncation
otherwise you would see the full string in the HTML, only it wouldn't be
rendered in the browser.

You might be interested in this link, which points to Mozilla as having a 60
character limit:

http://www.456bereastreet.com/archive/200412/the_alt_and_title_attributes/

Hope that helps.

Best regards

John


John Goldsmith
www.visualSignals.typepad.co.uk
www.visualSignals.co.uk
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top