473,722 Members | 2,305 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2572
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******@grape city.com> wrote in message
news:e6******** ******@TK2MSFTN GP12.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******@grape city.com> wrote in message
news:e6******** ******@TK2MSFTN GP12.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******** ******@TK2MSFTN GP09.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******@grape city.com> wrote in message
news:e6******** ******@TK2MSFTN GP12.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...poo r 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******@grape city.com> wrote in message
news:eU******** ******@TK2MSFTN GP10.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******** ******@TK2MSFTN GP09.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******@grape city.com> wrote in message
news:e6******** ******@TK2MSFTN GP12.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
22754
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 following are the problems and I hope that there is someone who can enlighten me or give me some pointers. Also, my testing code is attached at the end. And please don't ask me why I am doing this - it is one of functional requirements by all...
3
3607
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 purpose is to get the position of the mouse pointer on the bitmap. However, for some reason, the left (I also tried right) mouse clicks are not intercepted. I new to Python and wxWindows so any help would be greatly appreciated.
3
2074
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 forecolor, backcolor and font. The labels also are rotatable and the text can also be flipped 180 degrees (the flipped text part is still being worked on). I have one context menu for all 30 labels that allows for the property changes to the labels....
25
2703
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 someone would go into manufacturing it. £800 Dell product I am told occupies equivalent of two server space in a rack.
5
4746
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 gets triggered and the double click is not identified at all. Is there any way I can invoke the double click when the mouse move also exists?
2
4407
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 seems a little silly. Anyone know how to circumvent this? Right now I am having the function that is bound to the double click event undo the action the single click event performs. This is annoying and it flashes the single click event for a...
19
5941
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 the page but I find that the iframes interfere with the getting the mouse coords from the screen which is essential in moving the scroll bar around. My test html is given below. With the iframe hidden the mouse coords are obtainable. With the...
3
3766
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 pt As Point Dim wnd As IntPtr Const WM_LBUTTONUP = &H202 '//LButton up Const WM_LBUTTONDOWN = &H201 '//LButton down
5
574
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 left and right). When I select the form and go to the events tab (the bolt icon in properties), it gives me several options to choose from...
2
6975
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 reliable) way to have the link open in a new window/tab (using JS)? I have no control over the JS already on the page - this is for a selenium user extension that I'd like to write.
0
9386
Oralloy
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...
0
9239
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 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...
1
9158
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,...
0
8059
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6685
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 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...
0
5996
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();...
0
4503
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4764
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
2606
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.