At 11:24 AM 8/14/2001 +0200, F. GEIGER wrote:
>Is there a possibility to jump to a certain location within a page displayed
>Let me explain:
>In my app writeContent() outputs a form, which is rather large. Each line
>has an entry and a button "Change". If the user clicks on such a button, an
>action method generates an edit form and stores it into the session.
>Then the action calls writeHTML(), which in turn calls writeContent().
>All lines are displayed again as before except the one the user pressed
>This line now contains the edit form (which was stored into the session by
>the action method) with data preloaded to let the user make changes on 'em.
>When he is finished, he presses "Save changes". The changes are saved and
>the form is displayed again as in the first step.
>The problem is, that the line he had changed, can be out of view because it
>is near the bottom of the list. So he has to scroll and search to the line,
>that changed into an edit box. If he's not aware of this, he could think
>"Well, I pressed "Change" and nothing happens! Instead the form is
>redisplayed! Where is my edit box?!"
>Is there a way to achieve, that writeContent() somehow can do the scrolling
>to the right place within the page?
Have you gotten a reply on this? I don't see one glancing at the list...
2 things come to mind:
1. Try anchors as in putting this in your source:
<a name=foo>blah blah</a>
and then do a:
where newURL is either "#foo" (if you're lucky) or some expression to
concatenate #foo onto the current URL (look in HTTPRequest).
"focus" method also causes the field in question to be scrolled into
visibility. If not, perhaps there is a "scrollTo" method. You'll have to
Let us know what happens,