[POPUP & PHP] un vrai cette fois :-)

Statut
N'est pas ouverte pour d'autres réponses.

aKC1a

OldSchool CS Star
VOila j'ai une ligne de ma page qui est la suivante :

Code:
echo "<tr><td width=100% align=right><img src=images/showcomment.gif><a href='includes/_showcomment.php?id_news=$row->id'>Show comments</a></td></tr>";
Et impossible que cette page "showcomment.php" s'ouvre dans un popup .....

j'ai essayé ceci :
Code:
echo "<tr><td width=100% align=right><img src=images/showcomment.gif><a href='includes/_showcomment.php?id_news=$row->id' onclick='window.open(this.url,height=100, width=200, top=100, left=100, toolbar=no, menubar=yes, location=no, resizable=yes, scrollbars=no, status=no);' >Show comments</a></td></tr>";
mais marche pas.
Une idée ?
c'est surement un bete truc mais bon ... :)
 

zoheir

cvm.mangaleet()
le "this.url", est-il correct ?
pas d'erreur dans la console javascript?
 

Calvin80

Respect is key
aKC1a a dit:
VOila j'ai une ligne de ma page qui est la suivante :

Code:
echo "<tr><td width=100% align=right><img src=images/showcomment.gif><a href='includes/_showcomment.php?id_news=$row->id'>Show comments</a></td></tr>";
Hello...
essai d'ecrire "proprement" (c'est pas une cririque hein!) ton code php, etu utilise le simplue quote pluto que le dble quote, ca aide svt a évite les erreurs, et ça serait meme + optimisé..

echo '<tr><td width="100%" align="right"><img src="images/showcomment.gif"><a href="includes/_showcomment.php?id_news='.$row->id.'">Show comments</a></td></tr>';
Code:
echo '<tr><td width="100%" align="right"><img src="images/showcomment.gif"><a href="includes/_showcomment.php?id_news='.$row->id.'">Show comments</a></td></tr>';
[/code]
 
Statut
N'est pas ouverte pour d'autres réponses.
Haut