Pop-up

Résolu
maimounaaaa Messages postés 20 Statut Membre -  
maimounaaaa Messages postés 20 Statut Membre -
Bonjour,
je suis une débutante en prog web
j'ai une interface qui comporte Le code du patient ,Son nom
et le Diagnostic du patient .
-Une fois le médecin valide son formulaire, un pop-up sera affiché. Ceci comportera le
code du malade et le diagnostic saisis par le médecin.
le problème : je n'arrive pas à afficher le pop-up,
voici mon code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<link rel="stylesheet" href="page1.css" />
</head>
<body>
<font face="Arial" color="#FFFF80"><marquee behavior=scroll direction="right" bgcolor="#FF8040" border="0" width="100%" height="19">Consultation des patients</marquee></font>
<form name="fo" action = "#" method = "post">
<input type="hidden" name="medecin" value="register">
<center> <table classe="titre c1 "cellpadding="5" width="50%" >
<tr>
<td colspan="2" align="center"><span class="c">Consultation des patients</span></td></tr>
<tr>

<td width="30%"><li>Code du patient</li></td>

<td width="70%"><input name="m" style="width:100%;" maxlength="10" value=""></td>
</tr>
<tr>
<td width="30%"><li>Nom</li></td>
<td width="70%"><input name="p" style="width:100%;" maxlength="20" value=""></td>
</tr>
<tr>
<td width="30%"><li>Diagnostic du patient</li></td>
<td width="70%"><input style="width:100%;" maxlength="50" name="age" value=""></td>
</tr>

<br><div align="right" style="margin-top: 10px;">
<input type="submit" name="register" onclick="alert('le diagnostique est ")" value="Valider">

</div>
</table>
</center>
</form>
</body>
</html>
je suis besoins de votre aide
Mérciiiiiiiiiiii d'avance

3 réponses

  1. katsuo49 Messages postés 330 Date d'inscription   Statut Membre Dernière intervention   25
     
    il n'y aurait pas déjà une petite faute de frappe:
    <input type="submit" name="register" onclick="alert('le diagnostique est ")" value="Valider">
    <input type="submit" name="register" onclick="alert('le diagnostique est ')" value="Valider">
    0
  2. maimounaaaa Messages postés 20 Statut Membre
     
    ahh ok mérci mai encore il ne marche pas , je veux que le pop-up doit faisable par tous les code du malade et les diagnostic saisis par le médecin
    0
  3. katsuo49 Messages postés 330 Date d'inscription   Statut Membre Dernière intervention   25
     
    un fichier test.js :
    function afficheDiag(code,diag) { 
     cp = document.getElementById(code).value; 
     d = document.getElementById(diag).value; 
     alert(cp+d); 
    }


    ton fichier html :
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> 
    <html> 
    <head> 
    <link rel="stylesheet" href="page1.css" /> 
    <script src="test.js" type="text/javascript"></script> 
    </head> 
    <body> 
     <font face="Arial" color="#FFFF80"><marquee behavior=scroll direction="right" bgcolor="#FF8040" border="0" width="100%" height="19">Consultation des patients</marquee></font> 
     <form name="fo" action = "#" method = "post"> 
     <input type="hidden" name="medecin" value="register"> 
      <center> 
       <table classe="titre c1 "cellpadding="5" width="50%" > 
        <tr> 
         <td colspan="2" align="center"><span class="c">Consultation des patients</span></td></tr> 
        <tr> 
    
         <td width="30%"><li>Code du patient</li></td> 
         <td width="70%"><input name="m" id="codePatient" style="width:100%;" maxlength="10" value=""></td> 
        </tr> 
        <tr> 
         <td width="30%"><li>Nom</li></td> 
         <td width="70%"><input name="p" style="width:100%;" maxlength="20" value=""></td> 
        </tr> 
        <tr> 
         <td width="30%"><li>Diagnostic du patient</li></td> 
         <td width="70%"><input id="diag" style="width:100%;" maxlength="50" name="age" value=""></td> 
        </tr> 
    
    
        <br> 
        <div align="right" style="margin-top: 10px;"> 
         <input type="submit" name="register" onclick="afficheDiag('codePatient','diag');" value="Valider"> 
        </div> 
       
       </table> 
      </center> 
     </form> 
    </body> 
    </html> 
    0
    1. katsuo49 Messages postés 330 Date d'inscription   Statut Membre Dernière intervention   25
       
      chez moi ça fonctionne.
      0
    2. maimounaaaa
       
      merciiiiiiiiiiiiiiiiiiiiii infiniment :)
      0
    3. katsuo49 Messages postés 330 Date d'inscription   Statut Membre Dernière intervention   25
       
      Passe en résolu
      0
    4. maimounaaaa Messages postés 20 Statut Membre
       
      lOoOoOoOoOoOL OK :)
      0