...

View Full Version : Threading async programming JavaScript



amr.cis
06-16-2009, 10:25 AM
:confused:Dear All,
I have performance issue in javascript
Html with about 30-50 form controls ,textbox ,radios...

I done javascript function to parse forms control ,get name and get the value and
added these values to xmlDocument
xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async=true;
and append the the nodes
every thing works fine
i saved xmlDocument in xml file almost size 12-15 kb

I want to speed up the process using threads to add nodes in xmlDocument
I done search i want perfect library to use in my project??

Also
its work fast im my pc,
But I put page in windows server 2003 and access it from my pc
its tooooooooook allllott of time to done parsing html control,Imessure speed but alert before paring and alert after paring

Regards

Gjslick
06-17-2009, 12:34 AM
What are you doing exactly? You want each of the form field values to populate into an xml document? What are you doing with this xml document once it is created?

This wouldn't particularly be an application for multithreading, nor would multithreading magically speed up the process. If your code is not performing well, it's most likely due to how you wrote it. 50 form fields is a lot, but it's really not too many to cause serious performance issues when building an xml document off of it. Post your code and I'll take a look.

amr.cis
06-17-2009, 09:57 AM
xmlDocument sent to asp page..

code is so huge,
looping throw all forms control
get the name and the value
added it in xmlDocument

...
Could be problem of performance from I.E or windows
bcz when I test code in windows server 2003 soo slow
also i tested it in xp works fine


What are you doing exactly? You want each of the
form field values to populate into an xml document? What are you doing with this xml document once it is created?

This wouldn't particularly be an application for multithreading, nor would multithreading magically speed up the process. If your code is not performing well, it's most likely due to how you wrote it. 50 form fields is a lot, but it's really not too many to cause serious performance issues when building an xml document off of it. Post your code and I'll take a look.

Gjslick
06-17-2009, 08:52 PM
It is quite possible that your IE on win server 2003 just has a performance problem by itself. Is it IE6 by any chance? IE6 is notorious for all kinds of issues.

If it works fine on IE in windows XP (I'm assuming IE7 or higher is on your xp box), then your code is probably alright. Have you tried running your page in other browsers like firefox or safari?

amr.cis
06-18-2009, 04:05 PM
it I.E7 their is proxy server called blue coat ,
will problem in windows or the proxy,
bcz i excute page in other windows server its perfect


It is quite possible that your IE on win server 2003 just has a performance problem by itself. Is it IE6 by any chance? IE6 is notorious for all kinds of issues.

If it works fine on IE in windows XP (I'm assuming IE7 or higher is on your xp box), then your code is probably alright. Have you tried running your page in other browsers like firefox or safari?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum