When I run the following html on my computer everything works great.
[code]
<html>
<head>
</head>
<body>
<script type=”text/javascript” src=”md5.js”></script>
<p><strong>Convert text to MD5</strong></p>
<form>
Word: <br />
<input type=”text” name=”input” size=”40″ /><input type=”button” onclick=”hash.value = hex_md5(input.value)” value=”MD5″ /><br /><br />
MD5:<br />
<input type=”text” name=”hash” size=”40″ /></form><br />
</body>
</html>
But when I upload the exact code to my web-server, the script does not appear to work at all. I honestly don’t know why this is happening. Yes, I uploaded the .js file with it and yes they are in the same directory. Sometimes it works right too. So I was thinking maybe it had to do with calling the javascript function right after calling to load it? I honestly don’t know what the problem could be. Any help would be greatly appreciateed.