By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,992 Members | 934 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,992 IT Pros & Developers. It's quick & easy.

Javascript often very slow

P: n/a
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
Share this Question
Share on Google+
4 Replies


P: n/a
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

P: n/a
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

P: n/a
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

P: n/a
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 discussion thread is closed

Replies have been disabled for this discussion.