Re: [htmltmpl] Question about page anchors (bookmarks) in H::T
Brought to you by:
samtregar
From: Brad C. <bra...@hi...> - 2004-12-02 13:08:00
|
Sam, > On Wed, 1 Dec 2004, Brad Cathey wrote: >=20 >> In a regular HTML setting, this is no problem=8Bthe URL reads: >>=20 >> http://www.domain.com/page.html#top >>=20 >> But in the .TMPL model, it goes to the home page: >>=20 >> http://www.domain.com/#top >=20 > Two answers: >=20 > 1) That's not "the .TMPL model" that's the model of your code. In my > code that would usually look like: >=20 > http://www.domain.com/foo.pl#top >=20 > But that's got nothing to do with HTML::Template 1) Not sure I understand, because in straight HTML <a href=3D"#top">Top of Page</a> works fine. However, I ended up leaving the anchor at the top of the page (would not work without it) and adding the relative cgi-path to my link, as you indicated, and it worked fine. <a href=3D"../cgi-bin/foo.pl#top>Top of Page</a> Thanks. |