bug bug bug ...
Voila les corrections d'après l'orientation initiale :
<html><head>
<title>rapport</title>
<script>
function Printtext() {
if(navigator.appName=='Microsoft Internet Explorer') {
parent.text.focus(); window.print();
} else {
parent.text.print();
}
}
</script>
<script>
function Printimg() {
if(navigator.appName=='Microsoft Internet Explorer') {
parent.photo.focus(); window.print();
} else {
parent.photo.print();
}
}
</script>
<script>
function trt(sel)
{
switch ( sel.options[sel.selectedIndex].value )
{
case 1: Printtext(); Printimg();
break;
case 2: Printtext();
break;
case 3: Printimg();
break;
}
}
</script>
</head><body>
<select name=print onchange="trt(this);"">
<option selected value="">- - - IMPRIMER - - -</option>
<option value="1">tout le rapport</option>
<option value="2">le texte seulement</option>
<option value="3">les photos seulement</option>
</select>
<table width=850 align=center border=1 style="border-right:1px solid #aaaaaa;border-bottom:1px solid #aaaaaa;" cellspacing=0 cellpadding=0><tr><td>
<iframe src="text.htm" scrolling="yes" height="340" width="850" border=1 name="text" Id="tx"></iframe><br>
<iframe src="photos.htm" scrolling="yes" height="430" width="850" border=1 name="photo" Id="im"></iframe>
</td></tr></table>
</body></html>
Il n'y a aucune impression lors de la selection dans le menu déroulant, alors qu'en remplacant le menu par des boutons l'un à coté de l'autre, ca marche.
Qu'est ce qu'il se passe ?
DapORoty