Bonjour,
mon script marche sur Firefox, Safari, Chorome et IE 8...
Il s'agit de contrôle sur les champs, mais ça ne marche pas du tout sur IE 7.0...

Est-ce que vous avez une idée, c'est pourquoi ?
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
 
<script type="text/javascript" src="js/jquery_rectfie.js"></script>
<script type="text/javascript">
jQuery.noConflict(); // c'est pour eviter conflit entre Mootools (menu) JQuery
 
var validator = jQuery("#Form").validate(
												{
		rules: 
		{
 
			nom: 'required',
 
			courriel: {
				required: true,
				email: true,
				   	 },
			courriel2: {
      			required: true,
				equalTo: '#courriel'
    					},
 
 
 
 
		},
 
		messages: 
		{
			nom: 'Écrivez votre prénom s\'il vous plait!',
courriel: 'Écrivez votre courriel correctement s\'il vous plait!',
			courriel2: 'Écrivez le même courriel que ci-dessus s’il vous plait !',
		},
 
											     }
												);
							     }
	                   );
 
 
 
 
 
 
function writediv_vrf_courriel(texte) {
	document.getElementById('divPourVrfEmail').innerHTML = texte;
}
 
function verifCourriel(courriel) {
    if (courriel != '') {
        if (courriel.length < 0)
            writediv_vrf_courriel('<span style=\"color:#cc0000\"><b>' + courriel + ' :</b> ce code est trop court</span>');
        else if (courriel.length > 200)
           writediv_vrf_courriel('<span style=\"color:#cc0000\"><b>' + courriel + ' :</b> ce code est trop long</span>');
        else if (texte = file('verification.php?courriel=' + escape(courriel))) {
            if (texte == 1)
                writediv_vrf_courriel('+courriel+');
 
            else if (texte == 2)
                writediv_vrf_courriel('+courriel+');
 
            else
                writediv_vrf_courriel(texte);
 
 
        }
    }
 
}
 
function file(fichier) {
    if (window.XMLHttpRequest) // FIREFOX
        xhr_object = new XMLHttpRequest();
    else if (window.ActiveXObject) // IE
        xhr_object = new ActiveXObject('Microsoft.XMLHTTP');
    else
        return (false);
    xhr_object.open('GET', fichier, false);
    xhr_object.send(null);
    if (xhr_object.readyState == 4) return (xhr_object.responseText);
    else return (false);
}
 
</script>
Merci