473,405 Members | 2,294 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

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

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.
Jun 27 '08 #1
3 4475
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
Jun 27 '08 #2
On Jun 13, 11:51 pm, "Jonathan N. Little" <lws4...@central.netwrote:
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.
Jun 27 '08 #3
kettle <Jo****************@gmail.comwrites:
On Jun 13, 11:51 pm, "Jonathan N. Little" <lws4...@central.netwrote:
>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.
Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Doug van Vianen | last post by:
Hi, I am working on an Applet which provides some mouse practice for new computer users in our local seniors' computer club. The applet contains several cards, in a card layout, which are...
5
by: Jesper Rønn-Jensen | last post by:
I have a textarea that must be limited to 70 characters. No big deal -- at least so I thought. * Textarea must not exceed 70 characters * Exceeding content must be cut off * Must work on input by...
7
by: Paul Gorodyansky | last post by:
Hi, Say I have a text in my TEXTAREA box - 01234567890 I want - using script - insert say "abc" in the middle. Works almost OK in Internet Explorer (with one problem) based on their example...
8
by: Yeah | last post by:
I wish to use a drop box where each Option will not take the user to a web page - but a certain location on the same page the drop box exists. For example, Option 1 would take the user to "Chapter...
3
by: Steve Miles | last post by:
I've got a tabbed form with the 2nd tab containing a subform. I'm trying to avoid the need to use the mouse to set focus to the first field on the subform. I can use <CTRL><TAB> to open the 2nd...
0
by: Bruin | last post by:
Hi All, I'm having a problem with MDI child forms when the reference to the MDI Parent is set in a Control library. (Sorry for the long post) I have an control library assembly which holds all...
4
by: Keith Bentrup | last post by:
Hi all, I wrote a simple search function to find text in a textarea where not all the text is visible (ie. the text box displays 10 lines but there may be more than 1000 lines to search). I can...
3
by: =?Utf-8?B?cHJvZ2dlcg==?= | last post by:
I have a C# application that hosts an AxWebBrowser control which I automate by sending mouse clicks and keyboard input. I have had various problems in doing this due to a bug in the AxWebBrowser...
7
by: =?ISO-8859-1?Q?=22=C1lvaro_G=2E_Vicario=22?= | last post by:
I need to emulate the missing "maxlegth" attribute in "textarea" fields but all my Google searches either lead to obsolete scripts that overwrite the "value" property (thus losing caret position)...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.