Pour une raison qui m'échappe (et j'ai pourtant creusé) l'évenement onSubmit d'un de mes formulaire ne se déclenche pas (ne lance pas la fonction attendue).

Voici le code

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
 
 
[...]
 
<script language="javascript1.3">
<!--
function md5Password() {
	alert("yo");
	alert(document.getElementById("tmppassword").value.length);
	if (document.getElementById("tmppassword").value.length > 1) {
		document.getElementById("password").disabled = false;
	} else return;
 
	if (check_format_usrpass(document.getElementById("tmppassword").value)) {
		document.getElementById("password_ok").value = 1;
		return;
	}
 
	document.getElementById("password").value = hex_md5(document.getElementById("tmppassword").value);
}
-->
</script>
 
[...]
 
<form method="POST" onSubmit="md5Password();" action="/MEMBRES_MEMBRE_STAFF.php?membreOID=2">
<input type="hidden" name="specialAction" alue="MEMBRE_STAFF_MOD.php">
<input name="membreOID" type="hidden" value="2">
Nom :
<input name="nom" type="text" value="Sergejack" size='20' maxlength='20'	>	<br>
Email :
<input type="text" name="email" value='----@gmail.com' size='60' maxlength='60' >
<input name="password_ok" type="hidden" id="password_ok" value="0">
<input name="password" type="hidden" id="password" disabled>
<input type="submit" name="button" value="MODIFIER">
</form>
<br>
Mot de passe :
<input name="tmppassword" type="password" id="tmppassword" size="20" maxlength="20">
 
[...]