Click here to get back home

textarea problem: keyboard focus doesn't follow mouse focus/click

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
textarea problem: keyboard focus doesn't follow mouse focus/click kettle 06-13-2008
Posted by kettle on June 13, 2008, 10:05 am
Please log in for more thread options
Hi,

I have a simple web page which is composed of a flash audio player
(jwmp3player) and a form with a textarea box. I have noticed some
very odd behaviour which I cannot puzzle out.

If I click on the flash mp3 player to play an audio file, then try to
click on the textarea and type in some text, I am unable to enter
anything. I can move the cursor around the textarea but the keyboard
focus will not change, as it appears to be stuck on the flash
player.

If I click somewhere else on the page, and then click again on the
textarea, I am then able to enter text. I've repeated this many times
and in different variations and the result is always the same.

I also tried adding an onClick="this.focus();" attribute to the
textarea tag, but this had no effect. For kicks, I then added an
onClick="this.select();" attribute to make sure that the mouse focus
really was being drawn away from the flash player, and this worked as
expected, highlighting any default text, however the only way I am
able to shift the keyboard focus is still to click once on some part
of the page other than the textarea or the flash player.

Any ideas as to what might be causing this bizarre behaviour would be
incredibly helpful as I am pretty much at a loss at this point.

Thanks.

Posted by Jonathan N. Little on June 13, 2008, 10:51 am
Please log in for more thread options
kettle wrote:
> Hi,
>
> I have a simple web page which is composed of a flash audio player
> (jwmp3player) and a form with a textarea box. I have noticed some
> very odd behaviour which I cannot puzzle out.

Great for you! And you want someone to diagnose some vague problem
without actually seeing the page?

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com

Posted by kettle on June 13, 2008, 12:59 pm
Please log in for more thread options
> kettle wrote:
> > Hi,
>
> > I have a simple web page which is composed of a flash audio player
> > (jwmp3player) and a form with a textarea box. I have noticed some
> > very odd behaviour which I cannot puzzle out.
>
> Great for you! And you want someone to diagnose some vague problem
> without actually seeing the page?

Actually no, I'm not looking for someone to fix my broken code, so I
apologize for framing my question wrong.

I think that the issue is more basic in that I don't understand how
the focus is controlled by the browser, and more importantly how that
control is handed off to and from embedded objects.

Can a flash object explicitly control the focus of the keyboard such
that one cannot, by keyboard alone, move between the object and the
rest of the page?

Or what, if anything, distinguishes the body of the textarea or form
field from the body of a webpage. That is, all things being equal,
with no javascript or other cleverness, why should clicking on a
textarea body produce a different result from clicking on markup free
space next to it?

If this is still too vague for a reply please just ignore it.

Posted by Ben Bacarisse on June 13, 2008, 1:11 pm
Please log in for more thread options

>> kettle wrote:
>> > Hi,
>>
>> > I have a simple web page which is composed of a flash audio player
>> > (jwmp3player) and a form with a textarea box. I have noticed some
>> > very odd behaviour which I cannot puzzle out.
>>
>> Great for you! And you want someone to diagnose some vague problem
>> without actually seeing the page?
>
> Actually no, I'm not looking for someone to fix my broken code, so I
> apologize for framing my question wrong.

We need to see it (the code you think might be broken). I.e. we need
a URL for an example page. You explained the problem clearly enough,
but most odd problems are cause by details, so a URL is the only way
to see exactly what you are doing.

--
Ben.

Similar ThreadsPosted
textarea not getting the focus in mozilla November 21, 2006, 4:30 am
IE shows alt-text as kind of a mouse-over November 23, 2004, 11:06 pm
Mouse-over or pop-up box displaying multiple lines of text June 21, 2006, 1:46 am
Inline scrollable divs and mouse wheels December 14, 2006, 9:47 am
Optimal way to call a sound file on a mouse/button click. August 5, 2004, 7:28 am
Marking up keyboard shortcuts September 2, 2004, 12:59 pm
Keyboard scrolling in web pages? February 5, 2005, 9:21 am
Using keyboard keys to activate buttons May 6, 2008, 3:30 pm
Focus October 20, 2004, 5:10 am
IE Focus Rectangles on Links August 17, 2004, 3:18 am

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap