focus

JQuery Combining Focus and Hover Events

Hey I am having a bit of trouble combining the HOVER and FOCUS events with jquery. This is what I had originally: $("input,textarea").focus(function () { $(this).parent().siblings('div.exp').removeClass('hide'); $(this).parent().siblings('div.exp').addClass('show'); }); $("input,textarea").blur(function (){ $(this).par...

IE6 textBox.focus(); causing "Unexpected call to method or property access"

The issue is now resovled :) Thanks for everyone's help and attention! I'm getting the JS error "Unexpected call to method or property access" in IE6 intermittently on the line "oAutoCompleteTextBox.focus();". Hopefully, someone has seen this issue before and can provide some insight on how to solve it. Below is the context of the usa...

JQuery focus() on jQuery-applied anchors works in Chrome and IE, not Firefox

Update: This question has been solved, so the buggy Firefox behavior will no longer appear when loading my example webpage My webpage has very long passages of text, so I want to make each paragraph its own permalink. To do this, I use jQuery to add an anchor and link to each paragraph after the page loads. This worked perfectly in Chro...

Giving a Flex application the focus in browser to capture keystrokes

I've written a little video game in Flex that runs in a browser. The player moves by pushing the arrow buttons on the keyboard, so I need to capture those keystrokes. In fact, the game action starts when the player presses one of those keys. In order to capture the keystrokes, the Flash/Flex application, not just the browser, needs to...

How do I give the focus to a TextBox in a DataForm?

I've got a small DataForm and I want to set the focus on the first TextBox. I'm using the Novermber 2009 Toolkit. I've named the TextBox and tried using .Focus() from the DataForm's loaded event. I see it get focus for one cursor 'blink' and then it's gone. I'm trying to work out if this is an artefact of the DataForm or something el...

Unselect Flex TextInput with enter key

In Flex, how can one set the TextInput to "unselected" (which mean not only focus is out but also, that if you text on your keyboard, the TextInput won't be changed) on the event of pressing the Enter key? I know how to change the component that has the focus using the FocusManager, but I don't want to change the component that has focus...

Is it possible to click a Button without ever losing focus on a TextBox?

I am trying to develop a touchscreen keyboard control in a C# WPF project that will be visible when a TextBox gets focus and is hidden when the TextBox loses focus. The projects I have seen for touchscreen keyboards have accomplished this by defining the keyboard as a new window rather than a control. For my application, I would really...

How to click a button in a out-of-focus widget without changing the current focus to it

I am trying to implement a input method with Qt Embedded. There is a lookup table for choosing the candidate words for typing. "text input area" to the "lookup table" and the selected word cannot be sent to the "text input area". Dose anyone have any idea to solve this problem? Thanks~ Here I give a simple example: main.cpp #incl...

Help setting focus on the parent

I have a simple situation (.NET2): a texbox1 on a UserControl1(or Form1). I want to unfocus(leave) the texbox when I click on the usercontrol/form(focus the usercontrol/form instead): I do the following on the UC/form: Protected Overrides Sub OnMouseClick _ (ByVal e As System.Windows.Forms.MouseEventArgs) MyB...

AjaxToolkit ModalPopupExtender: How do I set focus to a control in the popup Panel?

When the user pushes the Button, I'd like to display a modal dialog box to capture a couple of values from text boxes and submit these values to the server. When the modal box is shown, I'd like the cursor to be placed in the txtFirst textbox. How do I do this? I've had trouble with registerscript commands before, so if one is needed...

Winforms Checkbox Focus Problem if no Text is Applied on Checkbox

Hi, All I have a multiple checkboxes on a Winforms without having the Text Property of all checkboxes, so the problem is that when i hover a mouse on the checkbox it highlighted but when i go to the checkbox using tab key it never get highlighted.. If anyone have the similar issue and already solved it Please help.. ...

Click anywhere to focus in CKEditor

In FireFox, I can click anywhere in CKEditor (350px x 250px) to place focus on a single paragraph of text located at the top of the editor. However, in IE6 (I know, but our client insists) I must click directly atop the paragraph to focus the cursor and subsequently edit the text. CKEditor creates the following: <iframe> <html> <he...

YUI Calendar, How can I implement it like the jQuery UI Calendar?

With jQuery UI I can simply use .datePicker() or similar and it will automatically attach it to the focus and blur events of a text field. How can I do this with YUI calendar, sample code would be great!! Thanks. ...

Setting Focus to an iFrame in IE

There is a tree menu in my application and on click of the menu items, it loads a url in a iFrame. I like to set the focus in an element of the page loaded in the iFrame. I'm using this code, and it works perfectly in all the browsers except IE: var myIFrame = $("#iframeName"); myIFrame.focus(); myIFrame.contents().find('#inputName').f...

C# WebBrowser stops focus on richtextbox

Hi, I have problem with WebBrowser component. For some reason, when I click into it, it disables me from setting focus on richTextBox. I have 2 almost the same forms. Main difference between first and second form is, that form1 is modifying WebBrowser DocumentText and form2 is using webBrowser to display content of temporary file. F...

WPF Reset Focus on Button Click

Hello, I have a Textbox and a Toolbar with a button. If I'm typing in the textbox and I Click the button I want the TextBox to lose focus so the binding gets updated. I don't want to add a UpdateSourceTrigger=PropertyChanged to my TextBox. But instead when I click on the button I reset focus to the main window so what ever I'm on loses f...

How to set which control has focus on Application start

In C#/Winforms how do I set the default focus when my application starts? ...

Keyboard Tabbing Stops working on Windows GUI

I have a windows gui built in Microsoft Visual C++ and when the user performs a certain set of actions the keyboard tabbing to move from widget to widget stops working. Simply put, there are two list boxes with an add and a remove buttons. Selecting a row in listbox #1 and pressing the add button removes the object from list box #1 and ...

Silverlight hosted in Winforms: Alt+Tab focus behavior

We have a WinForms window with a WebBrowser control in it, pointing to a page with a Silverlight 3 control on it. If a Silverlight control has focus and you Alt+Tab away and back again, the focus is gone. Strangely, if you do the same thing again, focus returns to where it was. I’ve tried to manually re-focus the Silverlight control aft...

Not showing focus in wxPython?

I don't know if this is a stupid question, but is there any way to not show focus in wxPython? For example, I built a simple GUI with a few buttons and I don't want the dotted rectangle to show up on the button I have just clicked. If I remember correctly in Excel VBA you could just set TakeFocusOnClick tag to False. What would be the ...