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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T15:37:34+00:00 2026-05-22T15:37:34+00:00

Actually, I dont know if it’s a crossdomain ajax problem. Here is my problem:

  • 0

Actually, I dont know if it’s a crossdomain ajax problem.
Here is my problem:
I have a website running under ssl protocol, for example, the website url address is: https://172.11.8.1:10443/index.php, now I would like to get some xml data from another http process in the same server, say: http://172.11.8.1:8080/test.xml.

My assumption is, I could just add a js file in the HTML page of https://172.11.8.1:10443/index.php, the core ajax call is like the following:

    $.ajax({
    type: "GET",
    url: "http://172.11.8.1:8080/test.xml",
    dataType:"xml",
    success: xmlParser,
    error: errHandler
});

   function xmlParser (xml, textStatus)
   {
     //
   }

   function errHandler(xhr, statusText, error)
   {
   if (xhr.status == "0" && statusText == "error")
   {
      alert("network down");
   }
   else if (xhr.status == "200" && statusText == "parseerror")
   {
          alert("error to get xml info");
   }
else
{
        alert("error to get xml info");
}
}

as I follow the js file, it’s always go into error handle function directly. And the error information is like:

    errorType  Error: a is null message=a is null
    statusText parsererror

I believe the XML file format is valid, because I tried the same ajax call under the same http domain, it works.

Any suggestions?

  • 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-22T15:37:35+00:00Added an answer on May 22, 2026 at 3:37 pm

    You can get around the cross-domain issue in this case … just create a page in (for example) php that gets the feed….

    getXml.php

    <?php die(file_get_contents('http://172.11.8.1:8080/test.xml')); ?>
    

    js

    $.ajax({
        type: "GET",
        url: 'getXml.php',
        dataType:"xml",
        success: xmlParser,
        error: errHandler
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I might be wrong about what is actually happening here but i have 3
I know PHP scripts don't actually compile until they are run. However, say I
Actually, this question seems to have two parts: How to implement pattern matching? How
Actually, I'm using this way. Do you have a better way? private bool AcceptJson(HttpRequest
Actually here is a similar topic with little practical value. As far as I
Actually my question is all in the title. Anyway: I have a class and
I actually have an answer to my question but it is not parallelized so
This might sound weird, but when I open a solution that I dont know,
I'm toying with the idea of volumetric particles. By 'volumetric' I don't mean actually
Is there any way to reboot the JVM? As in don't actually exit, but

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.