Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    New to the CF scene
    Join Date
    Jun 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Threading async programming JavaScript

    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

  • #2
    Regular Coder
    Join Date
    Feb 2009
    Location
    NJ, USA
    Posts
    476
    Thanks
    2
    Thanked 70 Times in 69 Posts
    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.

  • #3
    New to the CF scene
    Join Date
    Jun 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

    Quote Originally Posted by Gjslick View Post
    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.

  • #4
    Regular Coder
    Join Date
    Feb 2009
    Location
    NJ, USA
    Posts
    476
    Thanks
    2
    Thanked 70 Times in 69 Posts
    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?

  • #5
    New to the CF scene
    Join Date
    Jun 2009
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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

    Quote Originally Posted by Gjslick View Post
    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?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •