On Monday 16 January 2006 23:36, Alan Chandler wrote:
> 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?

I took the required="yes" out and the page content produced looked good, so I 
don't know what the problem is.

Unfortunately, konqueror doesn't actually jump to the correct place ( and was 
true before) but much worse, firefox seems loop calling the server for a new 
page.

So it looks like I will have to give up on the idea

-- 
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]

Reply via email to