473,498 Members | 1,713 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Javascript often very slow

Hello,

We're developing an ASP.NET / C# intranet application. All users use
Internet Explorer 6.0 and JavaScript is always enabled.

In a HTML table, we use an onclick event on each tablerow and in that
onclick event (javascript) we save some values in hidden fields.

Most of the time, this works very fast, but it also happens a lot of
times that the internet browser respons very slow or gets stuck. We
really don't know what causes this, because in the javascript we do only
simple things such as setting values in hidden fields.

Is there anyone who recognizes this problem and knows some possible
solutions?

Greetings,
Chris



*** Sent via Developersdex http://www.developersdex.com ***
Sep 17 '07 #1
4 4084
Chris Zopers wrote:
Hello,

We're developing an ASP.NET / C# intranet application. All users use
Internet Explorer 6.0 and JavaScript is always enabled.

In a HTML table, we use an onclick event on each tablerow and in that
onclick event (javascript) we save some values in hidden fields.

Most of the time, this works very fast, but it also happens a lot of
times that the internet browser respons very slow or gets stuck. We
really don't know what causes this, because in the javascript we do only
simple things such as setting values in hidden fields.

Is there anyone who recognizes this problem and knows some possible
solutions?

Greetings,
Chris
<snip>
*** Sent via Developersdex http://www.developersdex.com ***
Perhaps there is a Garbage Collection problem, or a loop you are not
aware of or seeing.
Can you post the event handler?
--
intrader
Sep 17 '07 #2
On Sep 17, 3:49 am, Chris Zopers <test123tes...@12move.nlwrote:
Hello,

We're developing an ASP.NET / C# intranet application. All users use
Internet Explorer 6.0 and JavaScript is always enabled.

In a HTML table, we use an onclick event on each tablerow and in that
onclick event (javascript) we save some values in hidden fields.

Most of the time, this works very fast, but it also happens a lot of
times that the internet browser respons very slow or gets stuck. We
really don't know what causes this, because in the javascript we do only
simple things such as setting values in hidden fields.

Is there anyone who recognizes this problem and knows some possible
solutions?

Greetings,
Chris

*** Sent via Developersdexhttp://www.developersdex.com***
You don't happen to be using any additional client metrics/analytics
services, such as Omniture? They're notoriously slow and erratic, and
could be firing off synchronous callbacks while your users wait.

-David

Sep 18 '07 #3
Hello,

We do not use any additional client metrics/analytics
services, but we do use AJAX.
We have assigned some new attributes to each tablerow, like ID, Code,
etcetera and all we do in the onclick event is setting the values of
these attributes into hidden fields. And everything works really fast
most of the time, but sometimes it takes a very long time or the browser
gets stuck. Strange problem. Is there anything known about javascript
and/or Ajax that could cause this type of behavior?

*** Sent via Developersdex http://www.developersdex.com ***
Sep 18 '07 #4
On Sep 17, 11:41 pm, Chris Zopers <test123tes...@12move.nlwrote:
<snip>
everything works really fast
most of the time, but sometimes it takes a very long time or the browser
gets stuck. Strange problem. Is there anything known about javascript
and/or Ajax that could cause this type of behavior?

*** Sent via Developersdexhttp://www.developersdex.com***
Well, potentially yes, there are lots of "potential" causes for memory
leaks in JavaScript, all of which can be avoided using proper
techniques. There's nothing "inherent" about JavaScript or Ajax that
causes unavoidable memory leaks - those are caused by circular
references in closures (such as event handlers or XMLHttpRequest
callbacks) that don't get cleaned up, but it's impossible to tell
without some representative code.

-David

Sep 18 '07 #5

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

Similar topics

136
9198
by: Matt Kruse | last post by:
http://www.JavascriptToolbox.com/bestpractices/ I started writing this up as a guide for some people who were looking for general tips on how to do things the 'right way' with Javascript. Their...
0
7125
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
7002
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
7165
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,...
0
7203
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...
1
6885
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...
1
4908
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...
0
3093
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...
1
656
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
290
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.