I couldn't read through the threads ( didn't seem like the right
solution anyhow ). This is what our html developer came up with, a nice
javascript hack: (right off of our site) He simply created a javascript
function that is called that does the named-anchor dereference, instead
of letting the anchor-link do it (which takes into account base-href).
<!-- don't reload the page when linking to anchors... -->
<script type="text/javascript">
function anchorMessages(){
location.hash = "messages";
}
</script>
<a href="javascript:anchorMessages()">blah</a>
Wow I just realized that I could easily make a component to wrap this.
I'll see about that in work tomorrow, or if someone else feels like it,
should be pretty darn easy.
Daniel Lydiard wrote:
This will helpful too
http://www.tapestryforums.com/anchor-tags-vt2957.html?highlight=shell+anchor+base+tag
----- Original Message ----- From: "Jason Suplizio" <[EMAIL PROTECTED]>
To: "Tapestry users" <[email protected]>
Sent: Thursday, February 09, 2006 8:37 PM
Subject: Re: anchors with @Shell
http://www.nabble.com/Specifying-my-own-tapestry.url.BaseTagWriter-t1049395.html
On 2/9/06, Chris Chiappone <[EMAIL PROTECTED]> wrote:
There is a lot of info on this topic. Just do a search for "anchor
tags" in the tapestryforum.
On 2/9/06, Daniel Lydiard <[EMAIL PROTECTED]> wrote:
> I'm using the @Shell which creates a base tag with the application base
url.
>
> if i do a
>
> [a name="top"][/a]
>
> and a link [a href="#top"]Back to top[/a]
>
> the application won't scroll to the top of the page because of the base
tag
> produced by @Shell, it just goes back to the home page. Is there a
quick
> away around this?
>
> Thanks.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
--
~chris
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]