php - Usage of createElement/appendChild in IE8 for 512sha encrypted password? -
i want encrypt password login-form. have submit-button in index.php, encodes pw onclick:
<button type="submit" class="btn" onclick="formhash(this.form, this.form.password);">
the js looks this:
function formhash(form, password) { var p = document.createelement("input"); form.appendchild(p); p.name = "p"; p.type = "hidden" p.value = hex_sha512(password.value); password.value = ""; form.submit(); } the src works fine ff & chrome, in ie8 doesnt (there no return-value). think, problem occurs createelement or appendchild, cant isolate it. help?
many thanks
Comments
Post a Comment