setting var inside JS
| From: | Brian V Bonini | Date: | Wed, 07 Aug 2002 18:17:33 +0000 |
| Subject: | setting var inside JS | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-111555@lists.php.net to get a copy of this message | ||
Is it possible to set a var in side a JS statement? I can not seem to set
"nw" in the following statement.
echo '<td><a href="#" onclick="popup(\'./?id=' . $row->id
.
'&nw=1\',\'ig\',\'width=640,height=455,toolbar=no,scrollbars=yes,resizable=y
es,location=no\');"><img src="/ss/thumbnails/' . $img . '"'
. $size[3] .
'alt="click to enlarge" /></a></td>';