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 8894601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:32:29+00:00 2026-06-14T23:32:29+00:00

I have implemented the solution found here , but it is not working in

  • 0

I have implemented the solution found here, but it is not working in Firefox.

IE loads and reads the XML document fine Strike that, if the type of data is “string” the data variable holds the XML, but loading it into the xml variable returns the same function below. The XML file is a flat filed stored in the same folder as the HTML file. The file is being ran from "file:///D:/...", not from a webserver.

Firefox version is 16.0.2 and I have tried jquery 1.7.1 and 1.8.2. I have done a dataType comparison and the data is not XML, but just says Object.

I did an alert of $(data).contents and get:

function (c, d) {
    var e = p.map(this, b, c);
    return bc.test(a) || (d = c), d && typeof d == "string" && (e = p.filter(d, e)), e = this.length > 1 && !bg[a] ? p.unique(e) : e, this.length > 1 && bd.test(a) && (e = e.reverse()), this.pushStack(e, a, k.call(arguments).join(","));
}

I have tried setting security.fileuri.strict_origin_policy to false, but that has no effect.

Here is the code:

$.ajax({
        url: "COBIE.xml",
        dataType: ($.browser.msie) ? "text" : "xml",
        success: function (data) {
            if (typeof data == "string") {
                xml = new ActiveXObject("Microsoft.XMLDOM");
                xml.async = false;
                xml.loadXML(data);

                // Returned data available in object "xml"
                setMessage("XML date has been loaded");
            } else if (typeof data == "xml") {
                xml = data;
                alert($(xml).contents);
                // Returned data available in object "xml"
                setMessage("XML date has been loaded");
            } else {
                alert($(data).contents);
                setMessage("I have no idea what data you're trying to load");
            }
        },
        error: function (XMLHttpRequest, textStatus, errorThrown) {
            setMessage(errorThrown);
        }
    });
  • 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-06-14T23:32:30+00:00Added an answer on June 14, 2026 at 11:32 pm

    The code works fine. My XML had some funny stuff in it, so I couldn’t get it to parse correctly, but it wasn’t giving errors. It’s working now.

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

Sidebar

Related Questions

I have implemented pagination to my data, but the problem is I only have
I have implemented Facebook into my app but now I find that whenever I
UPDATE : I have found the problem that my DP solution didn't handle bonus
Update: I've found a partial solution in this answer here , by adding the
I am not very well in Java Script and i didn't found a solution
Problem can be found here: http://rosalind.info/problems/subs/ The question I have has to do with
I hope I'm not writing a duplicate, but I haven't found anything that answers
I found this solution on here How to update strongly typed Html.DropDownList using Jquery
The company I work for is looking to implement a caching solution. We have
I have two projects in my Solution. One implements my business logic and has

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.