Current location: Hot Scripts Forums » General Web Coding » JavaScript » Hexidecimals in javascript?


Hexidecimals in javascript?

Reply
  #1 (permalink)  
Old 03-13-04, 05:35 PM
gamextremer2003 gamextremer2003 is offline
Newbie Coder
 
Join Date: Jul 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Hexidecimals in javascript?

I want to create a little engine for myself where you enter a decimal number, submit, and it returns the value in hexidecimal format.

The reason why I need this in javascript and not something like php (I know php pretty well -- dechex), because that requires you to be online.

Actually, at this point, I don't care if it's an executable file (.exe) or a class file, I just need something to calculate numbers offline. Thanks guys.
__________________
Gamex
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 03-14-04, 03:54 PM
TwoD TwoD is offline
Community VIP
 
Join Date: Sep 2003
Location: 404
Posts: 1,813
Thanks: 0
Thanked 0 Times in 0 Posts
Here's the smallest piece of code I could find. It's VBScript and you'll just have to post it in a html page to make it work.

<input type="button" value="Hex" name="Button1">
<script FOR="Button1" event="onClick" language="VBScript">
MsgBox (Hex(InputBox("Enter the decimal value")))
</script>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 03-16-04, 07:20 PM
gamextremer2003 gamextremer2003 is offline
Newbie Coder
 
Join Date: Jul 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks, that works great!
__________________
Gamex
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
javascript menu covered by java applet shaisachs JavaScript 7 12-29-04 12:38 AM
How to Access an Access DB through Javascript hasancheema JavaScript 1 03-09-04 07:46 AM
Macro substitution in JavaScript? victorace JavaScript 1 02-05-04 04:26 PM
Accessing/calling javascript in a scriptlet k_a_a JavaScript 0 02-04-04 07:39 PM
Reaaly stuck about javascript over frames muratisik JavaScript 1 12-14-03 12:58 PM


All times are GMT -5. The time now is 06:56 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.