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

  • SEARCH
  • Home
  • 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 7505641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T21:58:53+00:00 2026-05-29T21:58:53+00:00

I have a page that displays XML info in a table. The XML files

  • 0

I have a page that displays XML info in a table. The XML files are server side and I’m using PHP to get the file names and data using a drop down box. JSON is used to put the names in the dropdown and DOM to send the XML across. That works fine in all browsers.

There is an issue with my adding entries feature. When I add an entry in Chrome or Firefox it shows up the next time that table is selected. It doesn’t work in IE9 though. The entries are added to the xml file but to view these changes in IE I have to open a new tab. Simply refreshing doesn’t work. To redirect in this script I use the header function:

header('Location: ./client2.html');

Is there something that needs to be added here for IE or is there an issue somewhere else. I’ve added the php that gets the data when the file is chosen.

ini_set('display_errors',1); 
error_reporting(E_ALL);

/* gets the selected file to use to return data */
$xml_filename = './XML/'.$_REQUEST['file'];
$xml = simplexml_load_file($xml_filename);

/* gets the root of the selected file */
$rootname = $xml->getName();
/* gets the children in that root */
$children = $xml->children();
$firstchild = $children[0];

// gets the table headings
$data = '{"headings":[';
foreach ($firstchild as $elem)
{
    $data = $data.'"'.$elem->getName().'",';
}

// removes trailing ','
$data = substr_replace($data,"",-1);
$data = $data.'],';

// gets the cell values
$data = $data. '"vals":[';
foreach ($children as $child)
{
    $data = $data.'[';
foreach ($child as $elem => $vals)
{
    $data = $data.'"'.$vals.'",';
}
$data = substr_replace($data,"",-1);
$data = $data.'],';
}

// removes trailing ','
$data = substr_replace($data,"",-1);
$data = $data.']}';

/* sends created JSON string back to client */
echo $data;
  • 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-29T21:58:55+00:00Added an answer on May 29, 2026 at 9:58 pm

    Turns out it was a caching issue. I had to add this: $.ajaxSetup({cache:false}) to the document.ready() section of the JavaScript. Nothing else seemed to work

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

Sidebar

Related Questions

I have a page that displays a table in two different modes. In each
I have a php page that displays rows from a mysql db as a
I have a JS function that processes XML I GET from a server to
I have a webpage on my site that displays a table, reloads the XML
I have a custom XML schema defined for page display that puts elements on
I have a page that displays a list with a of elements with a
i have a page that displays large datasets into html tables. how can i
I have a page that displays search results and has a DOM like the
I have a web page that displays a long line graph inside a div
I have a web page that displays a list of documents stored on the

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.