I have a problem with not seeing the current focus while in a particular
screen in a my app. The focus does not show for a type=text or
textarea. I have tried to reproduce this problem in a test application,
but have not been successful is doing that.
The actual app has a screen which is displayed on a template and the
contents are the return from an AJAX call. In that content there is a
hidden block. Clicking on a button in the displayed area causes that
hidden block to appear (with a gray background in a fixed location on
the screen). It is in that area that I have both text fields and text
areas. I also have dropdown lists and buttons. Only the text areas and
text fields do not display focus when there, but I can type into them so
I know that focus is there.
For my test app I copied the CSS file that I had been using and placed
my content within the same two named <div>s where the actual content
appears on the template. With this test app there is no problem. The
test app is at http://www.sheldonlg.com/multiplesel...multiples5.php.
I don't even know where to start looking for the problem. I did a
search in Google for "ht ml showfocus", but that wasn't much help.
Any suggestions?
(crossposted in comp.lang.javas cript and alt.html) 11 1821
sheldonlg a écrit :
I have a problem with not seeing the current focus while in a particular
screen in a my app. The focus does not show for a type=text or
textarea. I have tried to reproduce this problem in a test application,
but have not been successful is doing that.
The actual app has a screen which is displayed on a template and the
contents are the return from an AJAX call. In that content there is a
hidden block. Clicking on a button in the displayed area causes that
hidden block to appear (with a gray background in a fixed location on
the screen). It is in that area that I have both text fields and text
areas. I also have dropdown lists and buttons. Only the text areas and
text fields do not display focus when there, but I can type into them so
I know that focus is there.
CSS (for others than IE) :
input { background: silver }
input:focus { background: white }
HTML :
<input onfocus="if(IE) this.background ='white';"
onblur="if(IE) this.background ='';"
id="hiddenInput " name="Name">
JS :
IE = false; /*@cc_on IE=true; @*/
is your div styled visibity: hidden; or display: none; ?
is your div in same form that the form in rear when this div comes at
front ?
does that happens also with Firefox ?
--
sm
SAM wrote:
sheldonlg a écrit :
>>>
http://www.sheldonlg.com/multiplesel.../multiple5.php
Apparently no problem with focus (Fx 2 Mac)
Correct! This is the sample app and it works. I cannot reproduce the
problem in a simple app, and I cannot point you to the actual app since
that is behind firewalls and accessible only via VPN (it is an intranet
app). If I could reproduce the problem in a simple app, I would be 3/4
of the way to a solution.
SAM wrote:
sheldonlg a écrit :
>I have a problem with not seeing the current focus while in a particular screen in a my app. The focus does not show for a type=text or textarea. I have tried to reproduce this problem in a test application, but have not been successful is doing that.
The actual app has a screen which is displayed on a template and the contents are the return from an AJAX call. In that content there is a hidden block. Clicking on a button in the displayed area causes that hidden block to appear (with a gray background in a fixed location on the screen). It is in that area that I have both text fields and text areas. I also have dropdown lists and buttons. Only the text areas and text fields do not display focus when there, but I can type into them so I know that focus is there.
CSS (for others than IE) :
input { background: silver }
input:focus { background: white }
HTML :
<input onfocus="if(IE) this.background ='white';"
onblur="if(IE) this.background ='';"
id="hiddenInput " name="Name">
JS :
IE = false; /*@cc_on IE=true; @*/
is your div styled visibity: hidden; or display: none; ?
is your div in same form that the form in rear when this div comes at
front ?
does that happens also with Firefox ?
I tried the CSS stuff. That does what it says, but it doesn't solve my
problem. Let me more precise.
When that form comes up, the cursor everywhere is that left-up pointing
arrow. When the mouse is over a text field or a text area element, the
cursor changes to a vertical I-beam. However, the blinking vertical
line does not appear in the text field or the text area if I click on
them to set focus there. However, focus is set there as I can type in
information. I want to have that blinking vertical bar on as visual
feedback as to where the focus is.
On Mar 18, 7:14 pm, sheldonlg <sheldonlgwrote :
When that form comes up, the cursor everywhere is that left-up
pointing
arrow. When the mouse is over a text field or a text area element, the
cursor changes to a vertical I-beam. However, the blinking vertical
line does not appear in the text field or the text area if I click on
them to set focus there. However, focus is set there as I can type in
information. I want to have that blinking vertical bar on as visual
feedback as to where the focus is.
It is difficult to see what the problem is without an
exact-ish example.
Did you try, instead of changing visibility from hidden to visible,
to change with JavaScript the value of inner.HTML my************* ******@googlema il.com wrote:
On Mar 18, 7:14 pm, sheldonlg <sheldonlgwrote :
When that form comes up, the cursor everywhere is that left-up
pointing
>arrow. When the mouse is over a text field or a text area element, the cursor changes to a vertical I-beam. However, the blinking vertical line does not appear in the text field or the text area if I click on them to set focus there. However, focus is set there as I can type in information. I want to have that blinking vertical bar on as visual feedback as to where the focus is.
It is difficult to see what the problem is without an
exact-ish example.
I know. I wish I could reproduce it here.
Did you try, instead of changing visibility from hidden to visible,
to change with JavaScript the value of inner.HTML
No, there is much to much to generate to then use an innerHTML setting.
On Mar 18, 7:57 pm, sheldonlg <sheldonlgwrote :
>
It is difficult to see what the problem is without an
exact-ish example.
I know. I wish I could reproduce it here.
Did you try, instead of changing visibility from hidden to visible,
to change with JavaScript the value of inner.HTML
No, there is much to much to generate to then use an innerHTML setting.
Just to state the obvious:
check for error messages in the Firefox error console,
check valid HTML, CSS etc.
I see that you use in your example tables in the form.
Maybe try the form without tables, just in case,
sometimes tables in forms can create problems. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Martin |
last post by:
I have the following function in the onchange event of several text
boxes. If the user enters an invalid number the alert displays. I
would like to return the user to that same field after he closes the
alert but setting the focus as I'm doing here doesn't do it (instead,
the focus goes to the next field).
Any suggestions as to hwo I can make this work?
Thanks.
|
by: Krzysztof Karnicki |
last post by:
I would like develop Form on my Windows Application, that is going to notify
the user, just like Microsoft Office 2003 shows that there are new mail
coming. When I use System.Windows.Forms.Form and show it on a different then
main thread on my application, this new form became focused, but I want that
new form at the beginning acts like just stay-on-top notification… also in
this form I would like have controls, that could be focused,...
|
by: sandy_pt_in |
last post by:
Hi,
I have modal form which I am showing with some fading effect...
(it is like balloon that comes when you receive a mail in the outlook.)
But when I show this form, Owner form looses focus.
I searched across net & I came across ShowWindow API, It seems working
for me ... but the fading effect is not working.Can you please suggest
me some way so that I will be able to show my modal form using
ShowDialog and Still it is deactivated when...
|
by: Brian Henry |
last post by:
I have a list box bound to a data set, of course the datasource,datamember,
and valuemember are set, i tell it selecteditem = -1 to make nothing
selected, select mode is set to only one item at a time. When the list fills
the first item in the listbox has a background rectangle drawn but no focus
rectangle (this is NOT a custom drawn listbox, just a standard one).. now i
did set -1 as the selected item, but if i tab to the item the focus...
|
by: melanieab |
last post by:
Hi,
From reading something months ago, I've been under the impression that
saying button1.Focus() is enough to focus on the button and highlight it (the
dotted box). If this is true, I don't know what's wrong with my version, but
it doesn't work. In certain circumstances, when a button is definitely
focused on, you wouldn't be able to tell so from looking at the screen (the
dotted box isn't there so it looks like nothing's focused on). ...
| |
by: Grimm |
last post by:
I am developing an internalk inteface that integrates alot of seperate tools into one interface. The current version uses one Iframe inside a div layer for positioning. Currently the seperate web tools do not have the ability to stay active. As you switch from tool to tool the previous information is lost unless you use a Back button. I need to place multiple div layers with I frames in them that can be shown or hidden based on selection. The...
|
by: Luke R |
last post by:
How do i do this?
I have this at the top of the class for my form, but it doesnt work.
Protected Overrides ReadOnly Property ShowWithoutActivation() As Boolean
Get
Return True
End Get
End Property
|
by: daoxx |
last post by:
Hello
I've searched, posted and solved this (Thanks for helping!), but now it came back to bite me in the *ss.
I have a Yes/No field that is represented by a check box in my form1.
I want to show another field (textbox) when the mouse pointer goes over the checkbox, and make it not visible when the mouse moves away from it.
My problem is that when I make the textbox diseappear, if the user set focus on it and moves the mouse away, Access...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |