focus

Focus on item in the jcarousel

Hi all I've a page with a jcarousel, the carousel contains n items linked to other pages. I'm trying to keep on focus the clicked item also in the new page. Thanks in advance Luca ...

How can I set the initially focused element without activating the window (WPF)?

My program creates a window with ShowActivated=false, so that it doesn't steal keyboard focus when it's opened (the window is created in response to events coming over the network). I want to be able to specify that a particular TextBox field receives focus when the user switches to the window. However, the seemingly obvious methods (u...

WPF - create a realworld app, focus on the main objective - not get sidetracked

Hi, I know the title is really unclear, so give me a moment :) I'm a pro-coder doing cool stuff at work (console games), but I've got an idea for an app (for a couple of years now ;)) that I'd like to create at home. With 15 years of experience, I don't want to fall in to the trap of wanting to do everything myself - I'd like to borrow...

jQuery - pull navigational focus to a particular link on page load

As soon as a page loads, I want the focus to jump to a particular link, so hitting enter will 'click' it. I've tried $('ul li a:first').focus(); without luck, but I think I may be misinterpreting the usage of .focus(). Any advice appreciated! :s ...

How I can move focus from tabitem title to content in WPF?

Hello All! How I can move focus from tabitem title to content of this tabitem by pressing downarrow? I tried to use KeyboardNavigation but Keyboardfocus still doesn't move when I press down or up key. Thanks in advance. ...

AS3 cannot focus on input field using mouse click

Hi all, Help me with the problem: In flash(AS3), I have input field (not dynamic). I compile the swf, and upload it to my website. In browser (FF), sometimes i cannot focus in input field by mouse click(Even i click many times). In order to focus i have to press tab once, just then i can focus in. Anybody know, what is the problem? ...

jquery click function to focus on textarea?

function insertParamIntoField(anchor, param, field) { var query = anchor.search.substring(1, anchor.search.length).split('&'); for(var i = 0, kv; i < query.length; i++) { kv = query[i].split('=', 2); if (kv[0] == param) { field.value = kv[1]; return; } } ...

when adding focus to a textbox then adding a space &nbsp using javascript?

$("#inputField").focus() when the cursor focuses on the texbox i want to do one space, so it moves to the right a little further!! if you know what i mean thanks function insertParamIntoField(anchor, param, field) { var query = anchor.search.substring(1, anchor.search.length).split('&'); for(var i = 0, kv; i < query.le...

jquery: when i click a div, give focus to a textbox.

$('.my-button').click(function() { $(".my-textbox").focus() }); Before Jquery 1.4 this used to be the way to call focus to a textbox, now it doesn't work. When I click the button, I want to call focus to the textbox, what i mean by "focus", is that I want the textbox to act like it was just clicked on, so that the user will not hav...

CF - Button when pressed receives a focus (bold border)

As the question is asked ... how can i prevent that from happening? I have ZOOM IN and ZOOM OUT button that receive focus after pressed. The button in CF does not have focus property so im guessing im required to do another painful workaround... Any ideas? ...

VB6 ActiveX exe loses focus when launched from a third party app

I have a VB6 ActiveX exe that is launched from a third-party CRM App. On launch, the main form opens but it starts to flash and then loses focus. If you move the form, you'll see a server busy screen with the Switch To, Retry button. I've tried using SetFocus and the SetFocusAPI in the OnActivate event of the form, but that doesn't work...

Use JSpinner like JTable cell editor

Hi all, i'm using a JSpinner like a table cell editor, i have one annoying problem: The cell remains in NON-editable mode until i click into it, for NON-editable i mean that i can't write into it(it has not focus so it doesn't accept inputs keyboard) but i can change the value with up-down arrows(of keyboard). So, what i have to do t...

How to support for Enter key to make focus moving in a text column of the listview

I created the following view <ListView.View> <GridView> <GridViewColumn Header="Tester" DisplayMemberBinding="{Binding User}" /> <GridViewColumn Header="Executed On" DisplayMemberBinding="{Binding ExecutionDate}" /> ...

How to intercept the TAB key press to prevent standard focus change in C#

Normally when pressing the TAB key you change the focus to the next control in the given tab order. I would like to prevent that and have the TAB key do something else. In my case I'd like to change focus from a combobox to a completely different control. I can't do this by setting the tab order. I need to do this programatically. Any id...

Process sleep when form loses focus

While writing a server application with a windows form for a GUI a problem appeared. When a form loses focus the process sleep, so any networking will not work unless the form is in focus the whole time. Is there any way of creating a dialog or window that will keep its process running continuously? I call a function called cServer::Ge...

ExtJS: focus field

Hi, I have a window containing a form (formPanel). Users can show this window clicking on a button in an ExtJS environment. I would like that when the user clicks the button to show the window, a specific field inside the form contained by the window will focus (by this I mean that the cursor should move to that field so that the user c...

Focus Cursor function JavaScript (code included)

Here is my javascript code for a cursor focus function to go to username if it is blank on a form call "login". <script type = "text/javascript"> if (document.forms.login.user.value == "") ( document.forms.login.user.focus(); ) else ( document.forms.login.password.focus(); ) Do I need to add anything to my form? Here it is...

Jquery + jqueryui - focusing on text field not working for FF

I'm trying to select a text field inside the tab, when the tab is clicked. The jqueryui event is correctly bound - have tested by putting alerts & by replacing focus() in the below code with hide(). But when I say focus(), it does not focus inside the text field. This is for FF 3.6.10 Code as below - $( "#tabs" ).bind( "tabsselect", f...

How do you NOT focus on any input text fields in a form after a page loads?

I have a form loaded in a simplemodal overlay, but it focuses on the first input field. Is there anyway to have the form not focus (meaning the field is selected and the user is able to type into it right away without having to click it) on any text input field after a form loads? ...

How to check display (none/block) of a div in jquery?

I am using this, $("#loginanchor1").click(function (e) { e.preventDefault(); $("#signin_menu1").slideDown("slow"); }); $(document).mouseup(function (e) { if ($(e.target).parent("a.loginanchor1").length == 0) { //$(".signin").removeClass("menu-open"); $("#signin_menu1").slideUp("slow"); } }); Everything ...