How to move the focus off a form?

Hi,

I’ll try to explain the problem first.

Our database starts with a frameset, say Left and Right. In the Left frame, another Frameset is loaded with Frames LeftTop and LeftBottom. In LeftBottom, an outline with several views is shown to the user. When clicking an outline entry, the corresponding view is shown in the frame Right. When double-clicking a document, the document always opens in the Right frame (to be expected, isn’t it :wink: Also, the F1-key for help is diverted to an applicatio help file.

And now the LeftTop frame. We want to show a logo in that area. An end-user (application manager) should be able to set or change this logo without the use of the Domino Desiger. There are two approaches for this:

a. the user enters the logo in a document, and the application enters it into the Image Resources

b. the user enters it in a document, and the logo is displayed using a read-only form.

For the first one, we’d need additional software, a no-go at the moment. The second one works, but… The LeftTop frame gets the focus, so when a used types F1, he gets help in the logo form. I’ve been looking all over all properties, switched off everything that looks like setting the focus on the form, but I still can’t succeed in getting the focus off.

I even tried a hotspot around the logo, which works, but I can’t find a call to give some other frame the focus. Trying in JavaScript prved no good, since window.top.frames[1].focus() gives an error message when there are only views on screen.

Big question: How to set focus to another frame?

Thnx for all your reactions!

Jeff

Subject: onFocus event for field that holds graphic: window.parent.LeftBottom.focus

Subject: Field is computed rich text, ergo: no onFocus

There are only computed for display fields on the form. I even added a SaveOptions field with value “0”, to keep the user from saving the form (which used to be possible!).

I just don’t want the form or frame active. Never.

Thanks for you reaction anyway.

Subject: This should work: Make the field editable again. The onFocus event should fire whenever graphic is clicked. Therefore no edit mode possible.

Subject: onFocus works (sometimes)…

I indeed get onFocus events then, but there is no effective means to get focus away from the current document. There is no mechanism to refer to other frames, blur() in JS doesn’t function, can’t get other frames in JS, nor in LS. Wits end for me…

Subject: Thats where window.parent comes into play. That refers to the frameset that loaded…

the frame TopLeft. so window.parent.BottomLeft.focus should put the focus back down to the bottom left frame.

Subject: It should… but it doesn’t :frowning:

I tried to see whether the field’s onFocus is really fired, but on alert"(onFocus") didn’t do a thing. So I recreated my hotspot around all fields on the form and used its onClick, which works. In the action I selected Client JavaScript, and added the following: alert(“onFocus”);

window.parent.BottomLeft.focus();

Needless to say, without any success. Opening a document in read-mode in the Right-frame still shifts focus to the TopLeft frame. This really makes me mad…

There are no LS-calls in Notes to shift focus away? Not even in C or C++? For it’s clear to me now that the implementation of the JS-object model is flimsy. I hope there will be some improvements here, in JS, but it wouls be better to have calls available to do something with frames from LotusScript.

Thanks for your cooperation!