Re: [SMARTY] Smarty and problem with the anchor
| From: | messju mohr | Date: | Fri, 21 Feb 2003 13:34:46 +0000 |
| Subject: | Re: [SMARTY] Smarty and problem with the anchor | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-8078@lists.php.net to get a copy of this message | ||
On Fri, Feb 21, 2003 at 02:27:20PM +0100, Milo Nextitalia wrote:
> Hi,
>
> i hope that somebody can help me or give me some ideas
>
> in my internet site, made all with smarty 2.3.1, i want load my pages
> with an anchor, example:
> index.php?pagina=1&menu=2#anchor
>
> and my anchor is on the half of the page.
>
> when i click on it, the page is loaded but don't goes in the point where
> i have the anchor.
> If i click again, the page isn't more loaded but only move in the place
> of my anchor.
> So the first time that the page is loaded never go where i have my
> anchor.
>
> Somebody know why?
>
> Can be that smarty don't look the anchor of the link when the template
> is loaded?
this is definately no smarty issue. smarty does not know about the client
or any anchor tags.
maybe you simply wrote:
<a name="#anchor"> (wrong!) instead of
<a name="anchor"> (right!).
in your page. this is a common error, people do. the "#" is not part
of the anchor-name, in is the delimiter between the anchor-name and the
rest of the url.
> Thank yuo to all
> Milo
have fun
messju