Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

JavaScript Error Loading XML In Google Chrome

Posted on 2008-11-18
3
Medium Priority
?
3,463 Views
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()
        };
    }
    else
    {
        alert('Your browser can\'t handle this script');
        return;
    }
    xmlDoc.load("AdministrationSiteMap.aspx");
}

Open in new window

0
Comment
Question by:clickclickbang
2 Comments
 
LVL 9

Accepted Solution

by:
amx earned 2000 total points
ID: 22984843
I think you'll find ths link useful, it describes your problem with the solution

http://chromespot.com/showthread.php?t=1063
0
 
LVL 1

Author Comment

by:clickclickbang
ID: 23030650
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.
0

Featured Post

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article was originally published on Monitis Blog, you can check it here . Today it’s fairly well known that high-performing websites and applications bring in more visitors, higher SEO, and ultimately more sales. By the same token, downtime…
Strategic internal linking is often considered an SEO power technique, especially for content marketing. Do you need to hire an SEO agency to optimize you internal linking? No, this article will help you understand the basics of internal linking and…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

578 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