Ok this is what've done
Code:
$display .= '<script type="text/javascript">'."\r\n";
$display .= '<!--'."\r\n";
$display .='function MM_openBrWindow(theURL,winName,features) { //v2.0'."\r\n";
$display .='window.open(theURL,winName,features);'."\r\n";
$display .='}'."\r\n";
$display .='//-->'."\r\n";
$display .='</script>'."\r\n";
if ($config['url_style'] == '1')
{
$display .= "<a href='javascript:;'";
$display .= "onClick=\"MM_openBrWindow('index.php?action=view_listing_image&image_id='.$imageID.'','','width=500','height=400')\">";
}
else
{
$display .= '<a href="listing_image_'.$imageID.'.html">';
}
$display .= "HOLA</a></td>";
And it does not work, BUT I know that it opens a popup window ok, because if I put and html document's name in the javascript it opens that document.
The only think I don't know is the syntax or the function I need to call to see my image on it's onw.
Maybe someone could show me, because I'm really lost know, this is as far as my limited "knowledge" of php and scripting goes.
Bookmarks