Forum Moderators: coopster
I am generating a HTML page with PHP and I need a pop window link.
So far I have got this but i just get a blank space where "Click here to view" should be.
$lc_text .= 'here to<br> <script language="javascript"><!-- document.write(\'<a href="javascript:popupWindow(\'http://www.domain.co.uk/product_ximage.php?products_id=' . $listing_values['products_id'] . '\')">Click here to view</a>\'); //--></SCRIPT><br>to here<br><BR>';
Can anyone help please
Thanks in advance
<BR><BR>here to<BR>
<SCRIPT language=javascript><!-- document.write('<a href="javascript:popupWindow('http://www.domain.co.uk/product_ximage.php?products_id=3492')">Click here to view</a>'); //--></SCRIPT>
<BR>to here<BR>
if you use mozilla or firefox they have a js debugging tool you can use by typing javascipt: into the location bar and hitting enter
I made this work
<?
$listing_values['products_id'] = 44;
$lc_text .= 'here to<br>';
$lc_text .= '<script type="text/javascript">';
$lc_text .= 'document.write("<a href=\\"javascript:popupWindow(\'http://www.domain.co.uk/product_ximage.php?products_id=' . $listing_values['products_id'] . '\')\\">Click here to view</a>");</script>';
$lc_text .= '<br>to here<br><BR>';
echo $lc_text;
?>
[edited by: jatar_k at 10:14 pm (utc) on Mar. 6, 2006]