[thelist] put special chars in a tooltip?

Saila, Craig Craig.Saila at bgminteractive.com
Wed Jul 10 14:46:07 CDT 2002


> -----Original Message-----
> From: Tom Dell'Aringa [mailto:pixelmech at yahoo.com]
> Sent: July 10, 2002 3:36 PM

> which does not work, JS rightly thinks that is some kind of
> variable or somesuch. Putting in quotes gives you the string
> of course...how else could I do it?

Use the Unicode values. I built a (W3C) DOM-based converter which will
show the character, the decimal and named entities, as while as the
Unicode value.
<http://www.saila.com/usage/tips/examples/special_characters.html>

In your case, try replacing &ordm; with "\u00BA", this should work:
 document.getElementById(thisId).title = someNumber + "\u00BA"

--
Cheers,

Craig Saila
------------------------------------------
craig at saila.com : http://www.saila.com/
------------------------------------------



More information about the thelist mailing list