NationStates Jolt Archive


Javascript help...ish

Sel Appa
11-12-2005, 05:40
Please take this (http://javascript.internet.com/calculators/binary-converter.html) handy little converter and reverse it. I'm looking for base36 to base 10 mainly, but it doesnt matter if you make it anything to anything. It has to be as simple as the one given. And must be usable offline. Thanks a bunch. And I know there are a lot of converters already out there, but I cant find a good offline one.
Sel Appa
11-12-2005, 19:28
No one can help? That's bull.
Safalra
11-12-2005, 20:17
It has to be as simple as the one given.
How about simpler? Type this into the address bar:

javascript:alert(parseInt(number,sourceBase).toString(finalBase))

With number, sourceBase and finalBase replaced with the appropriate numbers.

And must be usable offline. Thanks a bunch. And I know there are a lot of converters already out there, but I cant find a good offline one.
I presume the online-only converters are Java, not Javscript.
Sel Appa
12-12-2005, 01:10
It works, but you can't type in letters. base 36 uses 0-9 and A-Z.