Skip to Content
author's profile photo Former Member
Former Member

avoiding scrolling after refresh page EP6

HI,

I have a long page with several records.

When I press one button in the middle,

the page is refreshed,

and in <b>EP5 the focus is exactly in the same position where I clicked</b>,

but in<b> EP6 the focus is at the beginnen of the page</b>.

How can I mantain the focus ?

This is the code I use for the button EP5 and EP6:

<hbj:button id="<%=\"empUpd\"+k%>" text="Mod" width="30" tooltip="Upd

Employment" onClick="onUpdateButtonEmpClicked" design="standard"

disabled="False" encode="True"></hbj:button>

Thanks in Advance

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Nov 06, 2004 at 11:01 PM

    Hi Roberto,

    The HTMLB Form has an attribute called something like scrollingToLastPosition (see API for exact name). If you set this to "true", this should solve your problem. By default the form goes to the top of the page when it is refreshed.

    Good luck,

    Rashad.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thanks a lot for the answer...

      Fully of hope, I tryed it,

      but I have still the same situation...

      I have used this coding:

      <hbj:form id="myFormId">

      <% <b>myFormId.setScrollingToLastPosition(true);</b> %>

      But when I refresh the page,

      I'm jet on top of the page ...

      Any suggestions ?

  • author's profile photo Former Member
    Former Member
    Posted on Feb 19, 2005 at 07:09 PM

    Hi,

    I tried it and it works fine with EP6 SP2.

    thanks

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.