Navigation Menu

Site Contents
What's New?


Site FAQ
About JSS
JavaScript Forum
JavaScript Tutorial
Friends of JSS

Link to Us
JavaScript Help
Contribute a script
Technology Jobs

Internet.commerce

Partner With Us
Website Load Testing
Laptops
Car Donations
Phone Cards
Server Racks
Online Shopping
Logo Design
Memory Upgrades
Promotional Golf
Computer Deals
Televisions
KVM over IP
Compare Prices
Best Price

Internet.com

IT
Developer
Internet News
Small Business
Personal Technology
International

Search internet.com
Advertise
Corporate Info
Newsletters
Tech Jobs
E-mail Offers

Developer Channel

FlashKit.com
JavaScript.com
JavaScriptSource
Developer Jobs
ScriptSearch
StreamingMediaWorld
Web Developer's Journal
Web Developer's Virtual Library
WebDeveloper.com
Webreference
Web Hosts
XMLfiles.com

Great Sites

DocJavaScript.com
dhtml.com
The Freebie Directory
TheFreeSite.com

Browse Doc JS's Tips!


Hiermenus Central


Promotions

Free Announcements


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

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


User Comments

Add a comment, suggestion, or correction
[For questions about usage, consult the Notes tab above or visit the JavaScript forum]

    
   
       
[optional field]
 
[optional field]

   

Comments feed Comment Feed RSS 2.0

4. From: Lee
01/03/2007 13:25:40

Peter,
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.

3. From: Bob
12/18/2006 09:52:02

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...

temp.removeChild(temp.lastChild);

I figured out that this is simply because in your sample code you left out a space in the converteroutput span on the page...

<span id="converteroutput"></span>

If there is nothing between the tags, you get an error. By simply putting in a space...

<span id="converteroutput"> </span>

It works fine. I just thought you or anyone who wants to use this code would want to know.

Thanks,


2. From: Peter
12/16/2006 06:27:14

This script doesn't work on my PC I get a message
Line: 82
Char: 4
Error: Object Required
Code: 0
Any ideas what's going on please - I'd really like to use this script

1. From: Rick
12/13/2006 12:30:00

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?


Do you write JavaScripts?
If you do, why not submit them to us?
We'll give you credit and a link back to your Web site.