 |
| Javascript General Javascript discussions. |
Welcome to the p2p.wrox.com Forums.
You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
|
|
|
|

November 30th, 2005, 06:49 AM
|
|
Friend of Wrox
|
|
Join Date: Jan 2005
Posts: 1,525
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
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post
|
|
This works for me...
Code:
confirm("myTradeName ®");
HTH,
Chris
|
|

December 1st, 2005, 08:15 AM
|
|
Friend of Wrox
|
|
Join Date: Jan 2005
Posts: 1,525
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
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post
|
|
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
Posts: 1,525
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
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post
|
|
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
Posts: 1,525
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, 10:54 AM
|
|
Friend of Wrox
|
|
Join Date: Jan 2005
Posts: 1,525
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
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
|
|
 |