Roman Numeral Converter 2
General
This script will convert whole numbers to Roman numerals, up to 3,999,999. Easy to use.
Numbers To Roman Numerals Converter
Enter a number from 1 to 3,999,999=
Notes
- Created by: Kurt Grigg
- Web Site: http://www.kurtsdhtml.pwp.blueyonder.co.uk/
Source Code
Paste this source code into the designated areas.
External file
Paste this code into an external JavaScript file named: romanNumerals.js
Head
Paste this code into the HEAD section of your HTML document.
Body
Paste this code into the BODY section of your HTML document


Leave a Response
(4 comments)Peter,[br /]Check the case names in your functions. Object required in JavaScript generally means you've got the case wrong on a function name. If that's not it, you would have to provide a link to your page or more information.
I really like your script. However, I was unable to get it to work on my site with the code provided. I was getting an "Object required" error on line 78 which had the following line...[p]temp.removeChild(temp.lastChild);[p]I figured out that this is simply because in your sample code you left out a space in the converteroutput span on the page...[p]<span id="converteroutput"></span>[p]If there is nothing between the tags, you get an error. By simply putting in a space...[p]<span id="converteroutput"> </span>[p]It works fine. I just thought you or anyone who wants to use this code would want to know.[p]Thanks,
This script doesn't work on my PC I get a message[br /]Line: 82[br /]Char: 4[br /]Error: Object Required[br /]Code: 0[br /]Any ideas what's going on please - I'd really like to use this script
Hi there, I tried to put the Roman Numeral Converter 2 on my blog, on the sidebar, but it's failing to pick up the javascript for some reason. I have the absolute file path referenced in the header. Any ideas why this would be happening?