Forums
This topic is locked
javascript on the fly with php
Posted 03 Aug 2002 13:40:23
1
has voted
03 Aug 2002 13:40:23 Joan Garnet posted:
I've got a problem trying to create a javascript function "on the fly" with php.<b>The link that calls the function:###########</b>
echo "<a href='javascript:funct_one('".$row["preview"]."','".$row["id"]."','".$table1."')'> click here</a>";
<b>The function:###############################</b>
function funct_one (archivo,id,tabla){
window.open("escucha.php?table="+tabla+"&opcion=escucha&archivo="+archivo+"&id_gral="+id,"vent_escucha","width=500, height=300"
}
I'll appreciate your help!
ThanX!
<img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
(It seems that the link is dispayed as HTML... right click>>view source)