Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Field lose focus after adding an applet object

Thread Tools

Field lose focus after adding an applet object

Wai Man Chung
Posts: n/a
Dear all,

I have an asp page which upon opening a field will be set
to be in focus so that user can type in data without the
need to use the mouse to click on the field.

However, after I add an applet object, the field cannot be
in focus, even though there is statement in the asp page
explicitly setting the field to be in focus. User has to
wait for a short time (about 5 seconds). After the time,
he need to click on the field to bring it in focus. But
during the waiting time, the page does not respond to any
mouse click.

There is one interesting point that when I add an "alert"
statement at the end of the page so that a message box is
popped whenever the asp page is opened, the field is
brought into focus after user click OK the message box.

Do you have any idea ?

Thanks in advance.
W.M. Chung
Reply With Quote
Luke Zhang [MSFT]
Posts: n/a
Instead of the alert, if we add some code like "txtInput.focus", will this
ofrce the focus on the text box ?


(This posting is provided "AS IS", with no warranties, and confers no

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tkinter tab focus traversal causes listbox selection to clear,ie,lose the selected item Gerardo ARnaez Python 1 08-14-2008 09:09 AM
Losing Focus on Text Input Field with Applet Start Javascript 0 03-09-2007 03:49 PM
this.window.focus() vs. window.focus() vs. this.focus() Roger Javascript 3 03-08-2007 08:53 PM
You lose some, and then you lose some ... Lawrence D'Oliveiro NZ Computing 13 09-24-2006 08:29 AM
Why does Opera lose the focus on a input box if I scroll with a JavaScript Stefan Mueller HTML 4 11-16-2005 02:02 AM