473,405 Members | 2,373 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,405 software developers and data experts.

Tab out vs. Mouse click

Hi All,

I have created an ASP.NET page that basically consists of a table having
text boxes in all cells. The table is created using client side java script.
There are some calculations being done when user changes text in any text
box and moves to the next text box. This is done in the Text Changed event
in java script.
The problem that I am facing is that, if the user moves from one text box to
another using tab key, the performance is fine. However, if the user moves
from one text box to another using mouse click, the performance is lot
slower. It takes about 3-4 seconds for the cursor to reappear on the second
text box. Tab takes less than 1 second.

Can anybody throw some light on why this might be happening?

TIA
Prateek
Nov 19 '05 #1
4 2550
Maybe if you provided code?

Are you sure anything's happening when they are simply tabbing? maybe none
of your client-side code is running? In other words maybe the problem is
really with the tabbing as opposed to the mouse (that's what I frst thought
anyways)..

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Prateek" <pr******@grapecity.com> wrote in message
news:e6**************@TK2MSFTNGP12.phx.gbl...
Hi All,

I have created an ASP.NET page that basically consists of a table having
text boxes in all cells. The table is created using client side java script. There are some calculations being done when user changes text in any text
box and moves to the next text box. This is done in the Text Changed event
in java script.
The problem that I am facing is that, if the user moves from one text box to another using tab key, the performance is fine. However, if the user moves
from one text box to another using mouse click, the performance is lot
slower. It takes about 3-4 seconds for the cursor to reappear on the second text box. Tab takes less than 1 second.

Can anybody throw some light on why this might be happening?

TIA
Prateek

Nov 19 '05 #2
Hi Prateek,

Without any example code this is a tough call. If you are using VS.Net or
running IE with debugging enabled I recommend you use the debugger; line.
This will halt execution of your javascript and let you step through it just
like you do your ASP.Net code behind. Then step through your code after a
tab out and after a mouse click and see what is going on. My guess is that
you are firing some javascript on both the Text Changed event and the
onclick event that is causing a different execution path to occur leading to
your bottleneck. Good luck! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.

"Prateek" <pr******@grapecity.com> wrote in message
news:e6**************@TK2MSFTNGP12.phx.gbl...
Hi All,

I have created an ASP.NET page that basically consists of a table having
text boxes in all cells. The table is created using client side java script. There are some calculations being done when user changes text in any text
box and moves to the next text box. This is done in the Text Changed event
in java script.
The problem that I am facing is that, if the user moves from one text box to another using tab key, the performance is fine. However, if the user moves
from one text box to another using mouse click, the performance is lot
slower. It takes about 3-4 seconds for the cursor to reappear on the second text box. Tab takes less than 1 second.

Can anybody throw some light on why this might be happening?

TIA
Prateek

Nov 19 '05 #3
many thanks for your insights Ken and Karl..
heres some more information:
- Only OnChange event is being used. no server side code is executed.. only
javascript
- this event fires only once for both tab and mouse click
- it takes around 270-350 milli seconds for the code in OnChange event to
execute for both mouse and tab. no other code is executed.
- however, for the user, it seems that tab takes 1 sec and mouse click 3-4
seconds. whats causing this extra time? I can submit the code but actually
there isn't anything else in the code except an onchange event handler.
- there are three frames on the page.. each frame has a table. each table
has about 100 text boxes.
it seems that the system itself is executing something thats taking this
extra time..
any suggestions?

thanks for any inputs that you can give!

"Ken Dopierala Jr." <kd*********@wi.rr.com> wrote in message
news:uq**************@TK2MSFTNGP09.phx.gbl...
Hi Prateek,

Without any example code this is a tough call. If you are using VS.Net or
running IE with debugging enabled I recommend you use the debugger; line.
This will halt execution of your javascript and let you step through it
just
like you do your ASP.Net code behind. Then step through your code after a
tab out and after a mouse click and see what is going on. My guess is
that
you are firing some javascript on both the Text Changed event and the
onclick event that is causing a different execution path to occur leading
to
your bottleneck. Good luck! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.

"Prateek" <pr******@grapecity.com> wrote in message
news:e6**************@TK2MSFTNGP12.phx.gbl...
Hi All,

I have created an ASP.NET page that basically consists of a table having
text boxes in all cells. The table is created using client side java

script.
There are some calculations being done when user changes text in any text
box and moves to the next text box. This is done in the Text Changed
event
in java script.
The problem that I am facing is that, if the user moves from one text box

to
another using tab key, the performance is fine. However, if the user
moves
from one text box to another using mouse click, the performance is lot
slower. It takes about 3-4 seconds for the cursor to reappear on the

second
text box. Tab takes less than 1 second.

Can anybody throw some light on why this might be happening?

TIA
Prateek


Nov 19 '05 #4
Prateek:
I really don't have any idea. You might try cancelling the event after your
done processing. It might have undesirable side effects but it's really the
only thing I can suggest trying to figure it out:
http://www.webdevelopersjournal.com/...jsevents2.html
(different in IE and FireFox)

Perhaps the complexity of the frames/tables/boxes is what the problem
is...you could also simply dumb down the page to the core basics and if
that's fast, you can add functionality one at a time until you hit
something...poor man's debugging :(

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Prateek" <pr******@grapecity.com> wrote in message
news:eU**************@TK2MSFTNGP10.phx.gbl...
many thanks for your insights Ken and Karl..
heres some more information:
- Only OnChange event is being used. no server side code is executed.. only javascript
- this event fires only once for both tab and mouse click
- it takes around 270-350 milli seconds for the code in OnChange event to
execute for both mouse and tab. no other code is executed.
- however, for the user, it seems that tab takes 1 sec and mouse click 3-4
seconds. whats causing this extra time? I can submit the code but actually
there isn't anything else in the code except an onchange event handler.
- there are three frames on the page.. each frame has a table. each table
has about 100 text boxes.
it seems that the system itself is executing something thats taking this
extra time..
any suggestions?

thanks for any inputs that you can give!

"Ken Dopierala Jr." <kd*********@wi.rr.com> wrote in message
news:uq**************@TK2MSFTNGP09.phx.gbl...
Hi Prateek,

Without any example code this is a tough call. If you are using VS.Net or running IE with debugging enabled I recommend you use the debugger; line. This will halt execution of your javascript and let you step through it
just
like you do your ASP.Net code behind. Then step through your code after a tab out and after a mouse click and see what is going on. My guess is
that
you are firing some javascript on both the Text Changed event and the
onclick event that is causing a different execution path to occur leading to
your bottleneck. Good luck! Ken.

--
Ken Dopierala Jr.
For great ASP.Net web hosting try:
http://www.webhost4life.com/default.asp?refid=Spinlight
If you sign up under me and need help, email me.

"Prateek" <pr******@grapecity.com> wrote in message
news:e6**************@TK2MSFTNGP12.phx.gbl...
Hi All,

I have created an ASP.NET page that basically consists of a table having text boxes in all cells. The table is created using client side java

script.
There are some calculations being done when user changes text in any text box and moves to the next text box. This is done in the Text Changed
event
in java script.
The problem that I am facing is that, if the user moves from one text
box to
another using tab key, the performance is fine. However, if the user
moves
from one text box to another using mouse click, the performance is lot
slower. It takes about 3-4 seconds for the cursor to reappear on the

second
text box. Tab takes less than 1 second.

Can anybody throw some light on why this might be happening?

TIA
Prateek



Nov 19 '05 #5

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

Similar topics

9
by: punkin | last post by:
I am trying to catch mouse position on the entire screen by dynamically generating mouse click event at every 100 ms. My code only works for IEs but not any Netscape or Gecko-based browsers. The...
3
by: mitsura | last post by:
Hi, I have included a small listing. The test program opens a panel and show a bitmap. What I want is to when the mouse is over the bitmap panel, I want to trap the left mouse click. The...
3
by: jcrouse | last post by:
I have created a form designer type application (with a lot of you peoples helpJ). It has label controls that are draggable at runtime. The user is also allowed to change some properties such as...
25
by: Romanise | last post by:
An LCD monitor with keyboard and mouse capabilities on it, thinnest possible, to hang on rack-door can be a boon for expensive spaces of datawarehouses. Has anyone come across one? Maybe...
5
by: Nick | last post by:
Hey guys, I have 2 events on a windows forms datagrid, the mouse move as well as the double click events. What's happening is that when I double click on a row in the grid, the mouse move event...
2
by: scott_gui | last post by:
I am creating a Windows application: The mouse event <Double-Button-1> has a conflict when the <Button-1> event also has a binding. Double clicks will first perform the single click action. This...
19
by: wmanzo | last post by:
I have a really professional conspiracy movie site and I use tons of layers and an external scroll bar assembly. I would like to put the various sections into MS Iframes and in order to clean up...
3
by: Morten Snedker | last post by:
If I have a number of random applications open, move the mouse cursor to a given position and do a click, the application gets the focus. That is what this simple code should illustrate: Dim...
5
by: Adeel | last post by:
Hi group! I'm trying to learn C# on my own... I'd appreciate it very much if someone can help me out here. I have a basic form without any controls on it... I want to catch mouse clicks (both...
2
by: wpollans | last post by:
Hello, I need to able to write JS that will click on a link with the middle mouse button - so that the link target will open in a new window or tab - using firefox. Or is there a better (more...
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
marktang
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,...
0
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...
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
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...

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.