Re: [SMARTY] Help using the popup block
| From: | Monte Ohrt | Date: | Wed, 11 Dec 2002 19:31:39 +0000 |
| Subject: | Re: [SMARTY] Help using the popup block | ||
| References: | 1 2 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-6736@lists.php.net to get a copy of this message | ||
AFAIK double quotes don't work in the text because it ends up in double
quotes. They have to be html-escaped because you can't do this in most
browsers:
<a href="" onMouseOver="return overlib('<table
class=\"foo\"></table>');">blah</a>
eg. it won't like the escaped double quotes.
Monte
On Wed, 2002-12-11 at 13:17, Garland Foster wrote:
> Broken see what {popup} generates and you will see that the quotes are
> broken....
>
> ----- Original Message -----
> From: "Georges Berscheid" <georges@berscheid.lu>
> To: <smarty-general@lists.php.net>
> Sent: Wednesday, December 11, 2002 3:47 PM
> Subject: AW: [SMARTY] Help using the popup block
>
>
> Hi,
>
> I'm quite sure, you don't need to escape single quotes between double
> quotes.
> So try {popup text="<a
> href=\"javascript:foo('a','b');\">a link</a>"}
>
> Georges
>
>
> -----Ursprüngliche Nachricht-----
> Von: garland_foster@salutia.com [mailto:garland_foster@salutia.com]
> Gesendet: Mittwoch, 11. Dezember 2002 05:10
> An: smarty-general@lists.php.net
> Cc: smarty-dev@lists.php.net
> Betreff: [SMARTY] Help using the popup block
>
>
> 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
>
>
>
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
>
> --
> Smarty General Mailing List (http://smarty.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--
Monte Ohrt <monte@ispi.net>