Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Can't display trademark symbol in javascript and aspx

Reply
Thread Tools

Can't display trademark symbol in javascript and aspx

 
 
mrwoopey
Guest
Posts: n/a
 
      06-30-2003
Hi,

On my site I have "SomeProduct™", a name with the trademark symbol, in
a javascript menu. When the page (js) was refered in classic asp it
showed the trademark symbol. Now the page is aspx (.net) and the
traemark symbol displays as a "?".

I used String.fromCharCode(153) to display the "™", but it displays a
box.

How do you display the TM in javascript and .net?

Thanks,

Phin
 
Reply With Quote
 
 
 
 
Douglas Crockford
Guest
Posts: n/a
 
      06-30-2003
> On my site I have "SomeProductT", a name with the trademark symbol, in
> a javascript menu. When the page (js) was refered in classic asp it
> showed the trademark symbol. Now the page is aspx (.net) and the
> traemark symbol displays as a "?".
>
> I used String.fromCharCode(153) to display the "T", but it displays a
> box.


tm = '\u2122';
r = '\u00AE';

That is the JavaScsript representation of Unicode characters. The client machine
still needs to have adequate fonts installed.

http://www.crockford.com

 
Reply With Quote
 
 
 
 
bruce barker
Guest
Posts: n/a
 
      06-30-2003
<script>
document.write("SomeProduct&trade;");
</script>

"mrwoopey" <> wrote in message
news: om...
> Hi,
>
> On my site I have "SomeProductT", a name with the trademark symbol, in
> a javascript menu. When the page (js) was refered in classic asp it
> showed the trademark symbol. Now the page is aspx (.net) and the
> traemark symbol displays as a "?".
>
> I used String.fromCharCode(153) to display the "T", but it displays a
> box.
>
> How do you display the TM in javascript and .net?
>
> Thanks,
>
> Phin



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
registered trademark symbol in C++ source code Brad Tilley C++ 1 04-03-2011 03:24 PM
Trademark and terms of usage of Ruby logo Jonathan Weiss Ruby 2 07-26-2007 10:14 PM
Regarding using Trademark (TM) symbol in .net sasingh75@hotmail.com ASP .Net 2 01-03-2007 07:10 PM
Storing Trademark, copyright and Registered symbols in Database. lareds Java 4 11-18-2003 05:47 PM
Can't display trademark symbol in javascript and aspx mrwoopey Javascript 2 06-30-2003 11:30 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57