Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

related to text field focus

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
i made a small login swf, with two text fields, and i set the focus in the first field. If i open the .SWF the focus works, i mean the cursor is shown and everything, and if i type anything, it is written in the text field, without me having to click inside the text field with teh mouse.

If i open the HTML page where the swf is an object, the cursor is blinking in the text field, but if i type nothing appears. To set the focus i have to click with the mouse inside the text field. It's like the swf has its focus on the text field, but the HTML doesn't have its focus on the swf file.

Any idea how i can make the focus work in the HTML page?
 
That's exactly what's happening - the swf file doesn't have keyboard focus. Most people get around this by having an "enter" button or something in the page before the form to ensure the file has keyboard focus.

You can also work around this problem with Javascript forcing the focus on load but the enter button is the best way to go 9 times in 10. Slainte

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top