i have a pretty map of the US:
http://upload.wikimedia.org/wikipedia/commons/a/a5/Map_of_USA_with_state_names.svg
i would like to implement a tooltip with multiline functionality such as here over the red square:
http://www.carto.net/papers/svg/gui/tooltips/
please help me get started on this. i will be offering a maximum bounty on this.
Don't.
The title of the page is handed off to the browser and not rendered in the page; usually that means it shows up in the application's title bar. Actually rendering a newline would make the title bar twice as tall (or more, with multiple newlines) - and that's not going to happen.
Add a
<br/>
where you want the break.You never cease to amaze me, I__! How many projects are you working on?
Tooltips are browser-generated quick popups; you should use
\n
to set the.title
attribute in JavaScript.A line break in html is
<br />
. You can add that anywhere you like.FYI - there is no tag named 'field1', so your getElementsByTagName call will find nothing.
I achieved this by creating the tooltip value with
<br/>
from my server side.Apparently, this is a known problem and you have to handle it like this: