Aide javascript + operateur
balbeur
-
Utilisateur anonyme -
Utilisateur anonyme -
Bonjour,
Le code marche a merveille !
J'aurais souhaité aditionner les variables defini plus haut , j'ai donc fais
<tr><SCRIPT language="Javascript">
<!--
function CalculerTotal1000() {
if(!isNaN(total) && !isNaN(total2))
total1000 = total + total2;
else
total1000 = 'Merci de saisir des nombres';
document.getElementById('total1000').value = total1000;
}
//-->
</SCRIPT>
<div align="center"><br>
Montant total de votre commande <span class="Style4">
<input name="total1000" id="total1000" size="10" maxlength="5">
</span> €
<td style="text-align: center; vertical-align: top;"><span class="Style4">
<input name="Calculertotal1000" id="Calculertotal10" size="50" type="button" onclick="CalculerTotal1000();" value="Calculer"/>
</span></td>
Mais apparemment ca ne marche pas, voyez vous une erreur.
Faut il encore redefinir des variables, alors qu'elle sont déja utilisé plus haut ?
Le code marche a merveille !
J'aurais souhaité aditionner les variables defini plus haut , j'ai donc fais
<tr><SCRIPT language="Javascript">
<!--
function CalculerTotal1000() {
if(!isNaN(total) && !isNaN(total2))
total1000 = total + total2;
else
total1000 = 'Merci de saisir des nombres';
document.getElementById('total1000').value = total1000;
}
//-->
</SCRIPT>
<div align="center"><br>
Montant total de votre commande <span class="Style4">
<input name="total1000" id="total1000" size="10" maxlength="5">
</span> €
<td style="text-align: center; vertical-align: top;"><span class="Style4">
<input name="Calculertotal1000" id="Calculertotal10" size="50" type="button" onclick="CalculerTotal1000();" value="Calculer"/>
</span></td>
Mais apparemment ca ne marche pas, voyez vous une erreur.
Faut il encore redefinir des variables, alors qu'elle sont déja utilisé plus haut ?
A voir également:
- Aide javascript + operateur
- Opérateur de réseau mobile - Guide
- 0466 quel opérateur - Forum Mobile
- 0668 quel opérateur ✓ - Forum Mobile
- 0758 quel opérateur - Forum Opérateurs & Réseaux mobiles
- 0650 quel opérateur - Forum Mobile
1 réponse
Tiens comme on se retrouve LOLLLLLLL Je mets le lien vers la réponse : http://www.commentcamarche.net/forum/affich 5966515 operateur et php