JavaScript Error Loading XML In Google Chrome

Posted on 2008-11-18
Last Modified: 2013-11-19
Experts, I am unable to load the following XML file via JavaScript for my web application. It loads in both IE and FireFox but not in Chrome. Any ideas?
function importXML()


    nav = document.getElementById("nav");


    if (document.implementation && document.implementation.createDocument)


        xmlDoc = document.implementation.createDocument("", "", null);

        xmlDoc.onload = nav_create;


    else if (window.ActiveXObject)


        xmlDoc = new ActiveXObject("Microsoft.XMLDOM");

        xmlDoc.onreadystatechange = function () {

                if (xmlDoc.readyState == 4) nav_create()





        alert('Your browser can\'t handle this script');





Open in new window

Question by:clickclickbang
    LVL 9

    Accepted Solution

    I think you'll find ths link useful, it describes your problem with the solution
    LVL 1

    Author Comment

    Thank you amx.

    samtran0331 - thank you for your post. I was unaware that I was violating someone. It seems that experts post much for frequently on quests without any posts. On my other question, the "expert" posted a "solution" that was of no help. After he posted the "no help" response, no other experts touched the question. Thank you for your comment and I'll be sure to keep that in mind in the future.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Join & Write a Comment

    Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
    I've been asked to discuss some of the UX activities that I'm using with my team. Here I will share some details about how we approach UX projects.
    Any person in technology especially those working for big companies should at least know about the basics of web accessibility. Believe it or not there are even laws in place that require businesses to provide such means for the disabled and aging p…
    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)

    746 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

    16 Experts available now in Live!

    Get 1:1 Help Now