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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T08:04:14+00:00 2026-05-30T08:04:14+00:00

Before this question gets stamped as a duplicate, I am sorry! I’ve read ALL

  • 0

Before this question gets stamped as a duplicate, I am sorry! I’ve read ALL the duplicate questions and if anything, it has confused me even more. So maybe this question is slightly different.

I’ve written a little Javascript library that makes ajax calls and fetches and parses information from the graph facebook API.

This enables me to pretty much show all my page status’ on my web page. However I’m just about to launch, and I have done as much testing as I can.

However. I’m sure errors will occur, and I’ve written many error catches blah blah blah.

What I want to do, is save all my errors in a xml file.

So when an error occurs, I want the javascript to load the xml file from the server, add the errors, then save the changes.

I know how to load the xml doc using XmlHttpRequests, And I’m sure I can figure out how to modify the xml just by using dom manipulation.

All i really want to know is. How do i save these changes? does it save automatically?

Or do i have to “somehow” pass the updated xml version to php and get that to save it?

Im not quite sure how to go about it.

I would use mySQL and php but that means “somehow” passing the error information to php, then saving it.

However id much prefer XML seeing as I’m the only person that will be reading the xml file.

Thanks very much.

Alex

  • 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-30T08:04:15+00:00Added an answer on May 30, 2026 at 8:04 am

    Or do i have to “somehow” pass the updated xml version to php and get that to save it?

    Yes, you’ll want to use an XML HTTP request to send the XML DOM to the server where PHP can save it:

    function postXML(xmlDOM, postURL, fileName, folderPath){
    try{     
      // Create XML HTTP Request Object
      oXMLReq = new ActiveXObject("MSXML2.XMLHTTP.3.0");
      // Issue Synchronous HTTP POST 
      oXMLReq.open("POST",postURL,false);
      // Set HTTP Request Headers
      if(fileName != null){ oXMLReq.setRequestHeader("uploadFileName", fileName); }        // What should file be named when saved on server?
      if(folderPath != null){ oXMLReq.setRequestHeader("uploadDir", folderPath); }   // What folder should file be saved in on server?
      // SEND XML
      ///WScript.Echo(xmlDOM.xml);
      oXMLReq.send(xmlDOM.xml);
      return oXMLReq.responseText;
     }catch(e){
      return "postXML failed - check network connection to server";
     }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm sure some variation of this question has been asked before but all other,
This question has been asked before, mainly with reference to ListActivity, and therefore I
I ask this question because it appears that viewDidLoad gets called before the main
This question has been asked before in earlier versions of MVC. There is also
This question may have been asked before, but I'm starting to get into game
I asked this question and it seams ggplot2 currently has a bug with empty
Update: What I really wanted all along were greenlets . Note: This question mutated
I've actually posted this question before, but it hasn't been answered. Maybe I wasn't
I thought this question would have been asked before, but I couldn't find it
I've been searching the web (and S.O.) for a while before asking this question.

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.