Re: [SMARTY] Problem with html_image
| From: | messju mohr | Date: | Tue, 12 Oct 2004 10:10:12 +0000 |
| Subject: | Re: [SMARTY] Problem with html_image | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-11885@lists.php.net to get a copy of this message | ||
On Tue, Oct 12, 2004 at 10:17:00AM +0100, pt2002 wrote:
> Hello
>
> I have posted in the smarty forum but had no help.
>
> Have this html:
> <td><a href="?opc=3&id=1" onclick="return confirm_prompt(this,
> 'Confirm
> delete?');"><img src="images/delete.png" /></a></td>
>
> Want to switch this html to {html_image} and need to put the onclick="..."
> inside href parameter
> {html_image file="images/delete.png" href="?opc=3&id=1
> onclick="..." " } and
> I'm not figuring out how to do it because the "".
>
> Need some advice on this.
you cannot add attributes to the <a>-tag with html_image.
stick to <a href=".." onclick="..">{html_image ...}</a>
> Thanks in advance