Browser Freezes while loading XMLDoc

Posted on 2006-05-30
Last Modified: 2012-06-27
I have a XML document that is generated by the sever.
I also have a page that reads the XML document every 2 seconds and writes the contents into a DIV.

My question is why when it is loading the XML DOC will the browser window freeze? I would like to have a good refresh rate but more importantly I want the page to act normally even when it is reading the XML document. It currently runs on Firefox and IE but both browsers experience this hang up.


I would like to solve this ASAP.

Question by:EazyWorks
    LVL 10

    Accepted Solution


    Maybe you are not giving the document enought time to finish loading?  Just at shot in the dark.  Does it load with out the refreshing every 2 secs? Are you using AJAX to read the server?

    Author Comment

    I am loading the XML with Javascript using the new ActiveXObject but for some reason when it is loading the xml the browser hangs until it finishes loading.
    The JavaScript is calling a http document from the server that is formatted in XML.

    Author Comment

    The problem is when the Page is being loaded all other JavaScript and even the browser stops responding. How would I tell JavaScript to run a process in parallel and not stop all other processes?

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Enabling OSINT in Activity Based Intelligence

    Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

    Suggested Solutions

    Title # Comments Views Activity
    javascript error 8 34
    Need help with jQuery 14 58
    Hide row when retrieving data from database 6 23
    Align a <div> to a table row 3 20
    Both jQuery and Mootools offer some nice, easy to use scripts. Mootools is best known for their interactive slideshows and jQuery for their menus, but both have many other uses as well.   jQuery is basically a toolkit with many DOM (http://en.wik…
    Avoid defining the variables in the global scope; trying to define them in a local function scope. Because:   • Look-up is performed every time a variable is accessed.   • Variables are resolved backwards from most specific to least specific scope…
    The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
    The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    7 Experts available now in Live!

    Get 1:1 Help Now