Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / HTML, CSS, Scripts / JavaScript / January 2005



Tip: Looking for answers? Try searching our database.

Whats the trick for special characters?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Richard - 31 Jan 2005 07:18 GMT
In using a variable message format such as content[1]='it's a small world'

How exactly is the inner ' shown in the coding?
I tried 'it&acutes' which does not work.
Neither does 'it'+&acute+'s'.

Just being curious. Not that it matters that much.

thanks again.
Evertjan. - 31 Jan 2005 08:58 GMT
Richard wrote on 31 jan 2005 in comp.lang.javascript:

> In using a variable message format such as content[1]='it's a small
> world'
[quoted text clipped - 4 lines]
>
> Just being curious. Not that it matters that much.

If it doesn't matter much, shall we leave it at that?

===============

perhaps for others than the OP:

content[1] = "it's a small world" // using double quoted string

content[2] = 'it\'s a small world' // escaped

content[3] = 'it\047s a small world' // octal ascii

content[4] = 'it' + String.fromCharCode(39) + 's a small world'
                                           // String object decimal ascii

etc.

Signature

Evertjan.
The Netherlands.
(Replace all crosses with dots in my emailaddress)

Richard - 31 Jan 2005 14:30 GMT
> Richard wrote on 31 jan 2005 in comp.lang.javascript:

>> In using a variable message format such as content[1]='it's a small
>> world'

>> How exactly is the inner ' shown in the coding?
>> I tried 'it&acutes' which does not work.
>> Neither does 'it'+&acute+'s'.

>> Just being curious. Not that it matters that much.

> If it doesn't matter much, shall we leave it at that?

> ===============

> perhaps for others than the OP:

> content[1] = "it's a small world" // using double quoted string

> content[2] = 'it\'s a small world' // escaped

> content[3] = 'it\047s a small world' // octal ascii

> content[4] = 'it' + String.fromCharCode(39) + 's a small world'
>                          // String object decimal ascii

> etc.

Thanks for the info.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.