On Monday 16 January 2006 13:25, Kent Tong wrote:
> Alan Chandler <alan <at> chandlerfamily.org.uk> writes:
> > I want to actually go to an anchor on that page rather than the head of
> > the page.
>
> In the response page, try including Script component to insert
> a .script file like:
>
> <script>
> <symbol key="anchor" class="java.lang.String" required="yes"/>
> <initialization>
> window.location.hash="${anchor}";
> </initialization>
> </script>
>
That looks a good idea, but a couple of things.
I think that should be <input-symbol key="anchor" ...
and I don't know whats wrong but I have put this in my page template
<span jwcid="@Script" script="GoToAnchor.script" anchor="ognl:anchor"/>
and then I get this error
"Script symbol 'anchor' is required, but not specified".
Since this looks exactly like other examples I have seen, I have no idea whats
wrong. Any ideas?
--
Alan Chandler
http://www.chandlerfamily.org.uk
Open Source. It's the difference between trust and antitrust.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]