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 4 2574
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
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
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
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
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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...
|
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.
|
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....
|
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.
|
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?
| |
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...
|
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...
|
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
|
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...
|
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.
|
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: 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: 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: 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...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |