Menu
This sounds simple, but I can’t seem to convert a value on the form (provided it’s a valid number) to a hexadecimal. I’ve tried using the toHexString function, but it’s not working. I can do it in a java servlet with no problem, but I’d like to be able to do it in a jsp.
This is what I currently have that doesn’t work:
function ConvertToHex(obj)
{
res = obj.value;
hval = res.toHexString();
alert (“hval = “+hval);
form1.source.value = hval;
}
Any help would be greatly appreciated!!