Hi everyone:
While developing my first dynamic site, I realized that I need to open a popup window with dynamic url:
-I have a $row[4] variable with an url value returned from mysql.I´m trying to assign this variable´s value to a java script window open function.
-This is what the code looks like:
$temp = $row[4];//url
printf("<script language=\"javascript\">");
printf("function liveWindow(temp){
var liveWindow4=window.open\"$temp\",liveWindow4,\"width=310,height=420,toolbar=no,location=no,status=no,menubar=no,scrollbars=yes,resizable=yes,directories=0,status=0,copyhistory=0,maximise=no,left=30,top=30\");}");
printf("</script>");
printf("<A HREF =\"javascript:onclick=liveWindow()\">Open new window</A>");
}
When clicked in the link that supposes to open the window all I got is the infamous 500 apache error wich basically means url not found.
Note:The url is a *.php page.
Thanks for your help in advance,
Jorge