Focus shifting to the beggining of the form..pls help

I have a fairly long form designed for the web. Somewhere at the middle after the user has scrolled quite a bit we have 2-3 DialogList Boxes.

The problem is that as soon as a value is selected in one of them, the field loses focus and is transferred to the beginning of the form. I have a refresh occuring onthat field since it has to fetch the data(using dblookup) based on the first field.

This is a very critical problem as users have to scroll down all the way down to the middle of the form and start entering the other values.

I had worked out a solution wherein the focus should shift to the next field …but the subsequent 3 fields are also DialogLists which need a fetch of data based on the previous fields. So when a user has selected the first field the form undergoes a refresh and focuses onthe next field and if a user by mistake presses the scroll button on the mouse it suddenly goes to another value…

Please suggest a remedy for this so that the focus stays on the same field and doesnt move to the beginning of the form.

Thanks

Farooq

Subject: Why not try to put the focus back

by script in the post recalc event? (of NotesUiDocument)

For this you would need to capture which field you were at BEFORE the recalc started.

In r6 there is a QueryRecal event

and the NotesUIDocument has a currentfield property

and a gotoField method.

so all the pieces look to be in place but with Notes you never know if they all connect as well as might be expected.

Give it a try and let us know how you get on :=0

Subject: RE: Why not try to put the focus back

Thanks Alan…but my question was meant for focus shifting for fields on the Web form.

Subject: Focus shifting to the beggining of the form…pls help

You should search this forum for AJAX. There should be several postings.

Also take a look at Jakes Codestore http://www.codestore.net

Also do a search on Google for AJAX.

/Peter