473,396 Members | 1,982 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Disapearing cursor on some Readonly textbox

Hi,
I have a form in which there are many <asp:textbox> tags. When I run the
form, we use tab to navigate across the textboxes, but one of our client
noticed that when we navigate to some readonly textboxes, the cursor (text
cursor, not mouse cursor) disapears and when we tab to the next textbox and
come back (shift-tab), not it's ok. Notice that when we navigate to each
textbox, the text is automaticaly selected which is not the case for the
foresaid textboxes when we navigate forward on them, but the text is
selected when we navigate back (shift-tab). Some readonly textboxes select
and some don't. It seems to always happen when the preceding textbox has
some code(javascript) in the OnBlur event and is calculating something that
is put in the textbox that does not select.

Does anyone ever faced this problem before? Is there a solution so the text
is selected everytime we navigate to the field?

Thanks

ThunderMusic
Jan 23 '06 #1
2 3059
the onblur fire when the focus goes to a new field. if you change the
contents of the field the focus goes to, it will lose the default selection.
your javascript could reset the selection. you will proably need to use the
onfocus to detect if the textbox needs the select set.

-- bruce (sqlwork.com)

"ThunderMusic" <NOdanlatSPAM@hotmaildotcom> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi,
I have a form in which there are many <asp:textbox> tags. When I run
the form, we use tab to navigate across the textboxes, but one of our
client noticed that when we navigate to some readonly textboxes, the
cursor (text cursor, not mouse cursor) disapears and when we tab to the
next textbox and come back (shift-tab), not it's ok. Notice that when we
navigate to each textbox, the text is automaticaly selected which is not
the case for the foresaid textboxes when we navigate forward on them, but
the text is selected when we navigate back (shift-tab). Some readonly
textboxes select and some don't. It seems to always happen when the
preceding textbox has some code(javascript) in the OnBlur event and is
calculating something that is put in the textbox that does not select.

Does anyone ever faced this problem before? Is there a solution so the
text is selected everytime we navigate to the field?

Thanks

ThunderMusic

Jan 23 '06 #2
finaly I used the OnChange event instead of OnBlur. It seems to work. Only
future will tell.

"Bruce Barker" <br******************@safeco.com> wrote in message
news:O3**************@TK2MSFTNGP11.phx.gbl...
the onblur fire when the focus goes to a new field. if you change the
contents of the field the focus goes to, it will lose the default
selection. your javascript could reset the selection. you will proably
need to use the onfocus to detect if the textbox needs the select set.

-- bruce (sqlwork.com)

"ThunderMusic" <NOdanlatSPAM@hotmaildotcom> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Hi,
I have a form in which there are many <asp:textbox> tags. When I run
the form, we use tab to navigate across the textboxes, but one of our
client noticed that when we navigate to some readonly textboxes, the
cursor (text cursor, not mouse cursor) disapears and when we tab to the
next textbox and come back (shift-tab), not it's ok. Notice that when we
navigate to each textbox, the text is automaticaly selected which is not
the case for the foresaid textboxes when we navigate forward on them, but
the text is selected when we navigate back (shift-tab). Some readonly
textboxes select and some don't. It seems to always happen when the
preceding textbox has some code(javascript) in the OnBlur event and is
calculating something that is put in the textbox that does not select.

Does anyone ever faced this problem before? Is there a solution so the
text is selected everytime we navigate to the field?

Thanks

ThunderMusic


Jan 23 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: pv_kannan | last post by:
Hello, I am stuck with a problem trying to mimic the behavior of a Windows Forms Readonly textbox in HMTL/ASP.NET. Basically, I would like the text to be readonly and overflow the textbox...
2
by: Dennis C. Drumm | last post by:
What is the best way to add several pages of text to a readonly TextBox? The text does not change and was created in a Word rtf document but could as easly be put in a ASCII text file. Can this be...
7
by: Seash | last post by:
Hi friends , here is the sample code private void txtbox_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e) { if(e.KeyChar == 13) //enter { txtbox2.Focus(); }
3
by: Angela Chen | last post by:
Hi, I have a readOnly textbox. I want to be able to double click it to make it editable? How to implement it?\ Thanks a lot
1
by: Ian | last post by:
I have an ASP.NET 2.0 page with a readonly textbox on it who's value is populated by a popup child window used for selecting from a list. I use a javascript function to pass the data back to the...
3
by: fbergroth | last post by:
Hi, I'm quite new to C# allthough I've been programming in other languages for quite a while. I'd like to change the blinking cursor inside a TextBox, I guess I must derive the class and...
4
by: Brandon McCombs | last post by:
Does anyone know of an easy way to set the position of the cursor in a TextBox? If I set text in the box that is longer than the length of the TextBox the position of the cursor is at the very end...
2
by: Jassim Rahma | last post by:
how can i change the cursor of the textbox to the block style?
3
by: ranu2006 | last post by:
Hi All, Is it possible to change the BackColor of a readonly Textbox ? Thanks in advance
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
jinu1996
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...
0
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...
0
tracyyun
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.