PDA

View Full Version : OT: focus problem



Larry R Pint
23-Aug-2007, 01:28 PM
This is off topic because it is a general question about AJAX behavior. I
have no idea if DAW's implementation of AJAX exhibits this behavior, since I
have not done any work in this area.

I am looking at AJAX based web screens that a company is developing for my
client (fully in Java). When the focus is on any input field (form,
checkbox, radio button, etc) and you use the mouse and the scroll control on
the right edge of the screen to scroll the screen up or down, focus is no
longer on the input form. Is this normal and expected?

(Using the scroll wheel on the mouse to scroll the screen up or down does
not seem to cause the "problem".)

Thanks,

Larry Pint
SOFT-STAR, Inc.

Edwin van der Velden
24-Aug-2007, 02:13 AM
Focus is always an annoying issue, for example when you select some text in
a input field an dthen use the scrollbar to scroll up or down in Internet
Explorer (7) it will keep the text in the input field selected but the focus
is actually move (probably to the scrollbar) while in FireFox both the text
selection and the focus stay on the input field.

So it's hard to say since it differs a lot depening on the implementation
what the default behavior is, in our AJAX application a oLastFocus element
is stored so we can always put the focus back to the last selected input
element if we want that. What's right to do, I would suggest playing around
with the controls, and if possible let an end user play around with it a bit
and see what feels right.

Regards,

Edwin van der Velden
Data Access Europe



"Larry Pint" <larry.pint@ntuminc.com> wrote in message
news:8u3RdNb5HHA.2320@dacmail.dataaccess.com...
> This is off topic because it is a general question about AJAX behavior. I
> have no idea if DAW's implementation of AJAX exhibits this behavior, since
> I have not done any work in this area.
>
> I am looking at AJAX based web screens that a company is developing for my
> client (fully in Java). When the focus is on any input field (form,
> checkbox, radio button, etc) and you use the mouse and the scroll control
> on the right edge of the screen to scroll the screen up or down, focus is
> no longer on the input form. Is this normal and expected?
>
> (Using the scroll wheel on the mouse to scroll the screen up or down does
> not seem to cause the "problem".)
>
> Thanks,
>
> Larry Pint
> SOFT-STAR, Inc.
>

Harm Wibier
3-Sep-2007, 03:05 AM
Hello Larry,

A little note on your post. There is a very big difference between Java and
JavaScript. Although they share a part of their name it are complete
different programming environments. I guess that you mean JavaScript in this
case?

--
Regards,


Harm Wibier
Data Access Europe B.V.
http://www.dataaccess.nl/

"Larry Pint" <larry.pint@ntuminc.com> wrote in message
news:8u3RdNb5HHA.2320@dacmail.dataaccess.com...
> This is off topic because it is a general question about AJAX behavior. I
> have no idea if DAW's implementation of AJAX exhibits this behavior, since
> I have not done any work in this area.
>
> I am looking at AJAX based web screens that a company is developing for my
> client (fully in Java). When the focus is on any input field (form,
> checkbox, radio button, etc) and you use the mouse and the scroll control
> on the right edge of the screen to scroll the screen up or down, focus is
> no longer on the input form. Is this normal and expected?
>
> (Using the scroll wheel on the mouse to scroll the screen up or down does
> not seem to cause the "problem".)
>
> Thanks,
>
> Larry Pint
> SOFT-STAR, Inc.
>

Larry R Pint
4-Sep-2007, 10:08 AM
The application itself is written in Java (which I guess is kind of
irrelevant to my question, now that I think about it).

Since what I am talking about is the client side interface, I assume that
that would, indeed, be javascript.

Larry


"Harm Wibier" <harm.wibier@dataaccess.nl> wrote in message
news:LqbI4Eg7HHA.2312@dacmail.dataaccess.com...
> Hello Larry,
>
> A little note on your post. There is a very big difference between Java
> and JavaScript. Although they share a part of their name it are complete
> different programming environments. I guess that you mean JavaScript in
> this case?
>
> --
> Regards,
>
>
> Harm Wibier
> Data Access Europe B.V.
> http://www.dataaccess.nl/
>
> "Larry Pint" <larry.pint@ntuminc.com> wrote in message
> news:8u3RdNb5HHA.2320@dacmail.dataaccess.com...
>> This is off topic because it is a general question about AJAX behavior.
>> I have no idea if DAW's implementation of AJAX exhibits this behavior,
>> since I have not done any work in this area.
>>
>> I am looking at AJAX based web screens that a company is developing for
>> my client (fully in Java). When the focus is on any input field (form,
>> checkbox, radio button, etc) and you use the mouse and the scroll control
>> on the right edge of the screen to scroll the screen up or down, focus is
>> no longer on the input form. Is this normal and expected?
>>
>> (Using the scroll wheel on the mouse to scroll the screen up or down does
>> not seem to cause the "problem".)
>>
>> Thanks,
>>
>> Larry Pint
>> SOFT-STAR, Inc.
>>
>
>