Sorry for the confusion: I do mean converting the ASCII value (E.g. G=71) to its binary counterpart.
I found this website that shows how to do it manually. It should be translatable I guess.
--->
Here's how I did it.
HTML Code:
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript">
$(function() {
$("#submit1").click(function() {
data = $("#input1").val();
num = 0;
iBuffer = "";
while(data > 0)
{
num = data % 2;
data = Math.floor(data / 2);
iBuffer += num;
}
iBuffer = iBuffer.split("").reverse().join("");
$("body").append('<br />' + iBuffer);
return false;
});
});
</script>
</head>
<body>
<textarea cols="10" rows="10" id="input1">71</textarea>
<input type="submit" value="Go" id="submit1"/>
</body>
</html>
Bookmarks