Forum Moderators: open

Message Too Old, No Replies

symbol can't display properly in javascript

         

cwa2004

3:33 am on Sep 28, 2004 (gmt 0)

10+ Year Member



i am trying to make ▼ and it doesn't display properly in javascript.

"\u9660" too... well it almost display.

i wonder how can it display properly in javascript like in html ( ▼ )

thanks

[edited by: DrDoc at 8:14 pm (utc) on Sep. 29, 2004]

Rambo Tribble

4:39 am on Sep 28, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



JavaScript doesn't do the display of characters, it turns that function over to HTML. You simply need to deliver the appropriate information to the HTML rendering engine. That can be done through a variety of methods, such as document.write(), createTextNode(), or innerHTML, for example.

If you mean that you want to display the extended character set in the context of an alert box or such, I think there are some limitations, there. Such limitations vary by browser.

cwa2004

12:51 am on Sep 29, 2004 (gmt 0)

10+ Year Member



thanks for explaining but i firgured out yesterday...

i used \u25bc because javascript use hexa (btw \u9660 is not right symbol... my mistake)... not decimal ( i think so)