par
Spols » 23 janv. 2006, 19:31
Bonjour à tous
j'ai un script php que voici :
echo "<table width=\"784\" border=\"1\">
<tr>
<td width=\"189\" rowspan=\"4\"><div align=\"center\"><strong><a
href=\"javascript:void(0)\"
onClick=\"window.open('pop.php?file=$name_for_pop',null,'width=150,height=170, status=no, directories=no, toolbar=no, location=no, menubar=no, scrollbars=no, resizable=no');\"><img src=\"download.jpg\" width=\"60\" height=\"62\" border=\"0\" />
<br>Cliquez ici</a></strong></p><p>télécharger :",$contenu[compteur],"fois</p></div>
</td>
</tr></table>";
le problème est que la sortie est
Code : Tout sélectionner
<table width="784" border="1">
<tr>
<td width="189" rowspan="4"><div align="center"><strong><a
href="javascript:void(0)"
onClick="window.open('pop.php?file=038.gif
',null,'width=150,height=170, status=no, directories=no, toolbar=no, location=no, menubar=no, scrollbars=no, resizable=no');"><img src="download.jpg" width="60" height="62" border="0" />
<br>Cliquez ici</a></strong></p><p>télécharger :0
fois</p></div>
</td>
</tr> </table>
Or le script javascirpt ne fonctionne pas au niveau de retour à la ligne que fait php aprés le nom du fichier à ouvrir en popup
Code : Tout sélectionner
onClick="window.open('pop.php?file=038.gif
',null,'width=150,height=170, status=no, directories=no, toolbar=no,
Y a t'il un moyen d'éviter cela??
Spols
Bonjour à tous
j'ai un script php que voici :
[php]echo "<table width=\"784\" border=\"1\">
<tr>
<td width=\"189\" rowspan=\"4\"><div align=\"center\"><strong><a
href=\"javascript:void(0)\"
onClick=\"window.open('pop.php?file=$name_for_pop',null,'width=150,height=170, status=no, directories=no, toolbar=no, location=no, menubar=no, scrollbars=no, resizable=no');\"><img src=\"download.jpg\" width=\"60\" height=\"62\" border=\"0\" />
<br>Cliquez ici</a></strong></p><p>télécharger :",$contenu[compteur],"fois</p></div>
</td>
</tr></table>";[/php]
le problème est que la sortie est
[code]
<table width="784" border="1">
<tr>
<td width="189" rowspan="4"><div align="center"><strong><a
href="javascript:void(0)"
onClick="window.open('pop.php?file=038.gif
',null,'width=150,height=170, status=no, directories=no, toolbar=no, location=no, menubar=no, scrollbars=no, resizable=no');"><img src="download.jpg" width="60" height="62" border="0" />
<br>Cliquez ici</a></strong></p><p>télécharger :0
fois</p></div>
</td>
</tr> </table>[/code]
Or le script javascirpt ne fonctionne pas au niveau de retour à la ligne que fait php aprés le nom du fichier à ouvrir en popup
[code]onClick="window.open('pop.php?file=038.gif
',null,'width=150,height=170, status=no, directories=no, toolbar=no, [/code]
Y a t'il un moyen d'éviter cela??
Spols