|
|
 |
| Javascript General Javascript discussions. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Javascript section of the Wrox p2p Programmer to Programmer discussion community. This is a community of more than 40,000 computer programmers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining our free Wrox p2p community you can post your own programming questions and respond to other programmers’ questions. Registered users also don't have to see the ads that are displayed to guests. Registration is fast, simple and absolutely free so please, join today!
Join today and post to win prizes! Post more to increase your chances of being Wrox’s top poster of the month.
|
 |

November 30th, 2005, 06:49 AM
|
|
Friend of Wrox
|
|
Join Date: Jan 2005
Location: Mauchline, East Ayrshire, Scotland
Posts: 1,518
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
R (registered) symbol in a confirm box
Code:
question = confirm("You do not have Adobe Acrobat Reader Installed on your system.\n
This is required to Print the Terms & Conditions\n
Click OK to download this software now. Click Cancel to go Back");
Is there any way to have the R (registered) symbol beside the 'Adobe' text above?
TIA.
Picco
www.crmpicco.co.uk
|

November 30th, 2005, 08:18 AM
|
|
Friend of Wrox
|
|
Join Date: Jul 2003
Location: , , United Kingdom.
Posts: 685
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
This works for me...
Code:
confirm("myTradeName ®");
HTH,
Chris
|

December 1st, 2005, 08:15 AM
|
|
Friend of Wrox
|
|
Join Date: Jan 2005
Location: Mauchline, East Ayrshire, Scotland
Posts: 1,518
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
thanks chris, how did you enter the R in the first place though (k/board)
www.crmpicco.co.uk
|

December 1st, 2005, 08:25 AM
|
|
Friend of Wrox
|
|
Join Date: Jul 2003
Location: , , United Kingdom.
Posts: 685
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
No problem Picco,
I held down [alt] and entered 0174
Cheers,
Chris
|

December 1st, 2005, 08:28 AM
|
|
Friend of Wrox
|
|
Join Date: Jan 2005
Location: Mauchline, East Ayrshire, Scotland
Posts: 1,518
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
wierd, i am getting € - the Euro Symbol????
www.crmpicco.co.uk
|

December 1st, 2005, 08:35 AM
|
|
Friend of Wrox
|
|
Join Date: Jul 2003
Location: , , United Kingdom.
Posts: 685
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Very strange, that should be 0128, must be something to do with your machines configuration.
If you can't get it that way, you can always create a web page with ® in it, then copy and paste the outputted symbol into your code.
HTH,
Chris
|

December 1st, 2005, 08:51 AM
|
|
Friend of Wrox
|
|
Join Date: Jan 2005
Location: Mauchline, East Ayrshire, Scotland
Posts: 1,518
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
my local settings are all set at English - United Kingdom, are you at US settings?
www.crmpicco.co.uk
|

December 1st, 2005, 08:57 AM
|
|
Friend of Wrox
|
|
Join Date: Jul 2003
Location: , , United Kingdom.
Posts: 685
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Nope, United Kingdom here too.
BTW this site lists the keycodes for the various symbols: http://tlt.its.psu.edu/suggestions/i...s/codealt.html
|

December 1st, 2005, 10:54 AM
|
|
Friend of Wrox
|
|
Join Date: Jan 2005
Location: Mauchline, East Ayrshire, Scotland
Posts: 1,518
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
thanks again chris, look an interesting wee site.
www.crmpicco.co.uk
|

December 5th, 2005, 09:07 AM
|
|
Friend of Wrox
|
|
Join Date: May 2004
Location: , , .
Posts: 212
Thanks: 0
Thanked 0 Times in 0 Posts
|
|
Hi Picco,
This might help you too:
<script language ="javascript">
function convChars(){
var myNum = "";
var strFrom;
for(strFrom = 1; strFrom <= 255; strFrom++){
document.write(strFrom + " " + "= " + myNum + String.fromCharCode(strFrom) + "<br>")
}
}
</script>
Its just a simple script that shows you all the character codes on a page.
HTH
Joe
|
| Thread Tools |
Search this Thread |
|
|
|
| Display Modes |
Linear Mode
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
|
 |