Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6386035
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T02:58:26+00:00 2026-05-25T02:58:26+00:00

I am using jsGantt chart. To fill chart I am using xml file. Problem

  • 0

I am using jsGantt chart. To fill chart I am using xml file.

Problem is that xml file is outside project(root directory). so when jsgantt.js try to load xml file to fill chart it gives error like

enter image description here

jsGantt.js’ code is below which throws error.

JSGantt.parseXML = function(ThisFile,pGanttVar){
var is_chrome = navigator.userAgent.toLowerCase().indexOf('chrome') > -1;   // Is this Chrome 

try { //Internet Explorer  
    xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
    }
catch(e) {
    try { //Firefox, Mozilla, Opera, Chrome etc. 
        if (is_chrome==false) {  xmlDoc=document.implementation.createDocument("","",null); }
    }
    catch(e) {
        alert(e.message);
        return;
    }
}

if (is_chrome==false) {     // can't use xmlDoc.load in chrome at the moment
    xmlDoc.async=false;     
    xmlDoc.load(ThisFile);      // we can use  loadxml
    JSGantt.AddXMLTask(pGanttVar);
    xmlDoc=null;            // a little tidying
    Task = null;
}
else {
    JSGantt.ChromeLoadXML(ThisFile,pGanttVar);  
    ta=null;    // a little tidying 
}
};

error in xmlDoc.load(ThisFile); line where argument ThisFile is file path.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T02:58:27+00:00Added an answer on May 25, 2026 at 2:58 am

    Well, IIS isn’t going to serve files outside the directory of the website. That would be a pretty big security hole.

    You could try making the directory containing the file into another virtual directory, and allow anonymous access.

    Or just move the file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using VBA. My script moves a file into a directory. If that filename already
Using TortoiseSVN against VisualSVN I delete a source file that I should not have
i am using jsGantt javascript library for showing gantt charts in html . now
Using ASP.NET MVC there are situations (such as form submission) that may require a
Using JDeveloper , I started developing a set of web pages for a project
Using C#, I need a class called User that has a username, password, active
Using the below XML, I need to figure out which person worked more hours
Using the following code, I am unable to capitalise a label that directly follows
Using CRM 4, I have an entity form that contains a tab with an
using VB.Net2010 I need to call a C# DLL The problem I have is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.