Help using the popup block
| From: | garland_foster at salutia dot com | Date: | Wed, 11 Dec 2002 04:10:04 +0000 |
| Subject: | Help using the popup block | ||
| Groups: | php.smarty.dev php.smarty.general | ||
| Request: | Send a blank email to php-smarty-dev+get-399@lists.php.net to get a copy of this message | ||
I'm using {popup} to display a tooltip that can be used to display
a list of options to the user.
I know that you can include links on popus carefully escaping quotes
{popup text="<a href=\'foo.html\'>a link</a>"}
The problem is that I need the link to execute a javascript function
on the form
javascript:foo('bar','hey','hello');
And couldn't found a combination of quotes to include the JS code insde a
link on the popup:
{popup text="<a href=\'javascript:foo(\'a\',\'b\');\'>a
link</a>"}
Doesn't work I guess because the quotes for href are the same than the quotes
and
{popup text="<a href=\'javascript:foo(\"a\",\"b\");\'>a
link</a>"}
or
{popup text="<a href=\"javascript:foo(\'a\',\'b\');\">a
link</a>"}
arent't working either.
If you have experience using popup I'll appreciate some help.
Garland
for the Js parameters