Pop-up
Résolu
maimounaaaa
Messages postés
15
Date d'inscription
Statut
Membre
Dernière intervention
-
maimounaaaa Messages postés 15 Date d'inscription Statut Membre Dernière intervention -
maimounaaaa Messages postés 15 Date d'inscription Statut Membre Dernière intervention -
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
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
A voir également:
- Pop-up
- Pop up mcafee - Accueil - Piratage
- Pop corn time - Télécharger - TV & Vidéo
- Serveur pop - Guide
- Autoriser pop up firefox - Guide
- Mode securise free pop - Forum Freebox
3 réponses
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">
<input type="submit" name="register" onclick="alert('le diagnostique est ")" value="Valider">
<input type="submit" name="register" onclick="alert('le diagnostique est ')" value="Valider">
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
un fichier test.js :
ton fichier html :
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>