Salut bul,
il me reste encore un problème, c'est que je dois respecter le formalisme utilisé dans le reste de mon fichier.jsp et je ne sais pas trop comment faire le parallèle avec ce que tu m'as donné.
Pour la partie HTML, ca donne ca:
<body>
<td class="transparent" width="50%">
<table border="0" cellpadding="3" cellspacing="3" width="100%">
<tr valign="top">
<td width="30%" class="transparent" style="text-align: right"><fl:getMessage code="" alt="poids"/></td>
<td width="70%">
<unideal:input property="PerBMI" onblur="doPerBmiCalculation()"/>
<td class="transparent" width="50%">
<table border="0" cellpadding="3" cellspacing="3" width="100%">
<tr valign="top">
<td width="30%" class="transparent" style="text-align: right"><fl:getMessage code="" alt="taille"/></td>
<td width="70%">
<unideal:input property="PerBMI" onblur="doPerBmiCalculation()"/>
<td class="transparent" width="50%">
<table border="0" cellpadding="3" cellspacing="3" width="100%">
<tr valign="top">
<td width="30%" class="transparent" style="text-align: right"><fl:getMessage code="" alt="BMI"/></td>
<td width="70%"/>
</body>
Par contre, je ne sais pas comment coder le fonction effectuant le calcul, je t'envoie un exemple de fonction déjà codée:
function
doPerPhoneChange() {
var
f = document.forms[0];
var phoneField = f.PerPhone;
var faxField = f.PerFax;
var countryField = document.forms[0].CountryIDForFormatTel;
if (faxField.value == '' && phoneField.value.length > 3) {
faxField.value = phoneField.value.substring(0, phoneField.value.length - 3);
}
doFormatTel(phoneField, '<fl:getMessage code="L30B8" alt="Saisie du téléphone" js="true"/> :', countryField);
}
Merci