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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T23:09:25+00:00 2026-05-14T23:09:25+00:00

My PHP backend sends XML response to the client (ajax): <response> <code>0</code> <message>OK</message> </response>

  • 0

My PHP backend sends XML response to the client (ajax):

<response>
   <code>0</code>
   <message>OK</message>
</response>

in the javascript I’m trying to get CODE value in this way:
var errorCode = $(‘code’, xml).text();

and then depending on errorCode value I do processing.

It is working fine in all browsers I tested except IE7. Instead of CODE value – it is giving me the empty string. The problem is not in 0 value, because I tried to use 5 as a code for example – the result was the same.

Any ideas, because I’m stuck with :((

Thanks.

  • 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-14T23:09:26+00:00Added an answer on May 14, 2026 at 11:09 pm

    after some time of investigation, I found that I was stupid enough to post a question here.

    The problem was that I simply forgot to send proper headers in my ajax controller.

    after I added
    header("Content-Type: text/xml; charset=utf-8");
    it seems to me to work fine in IE7.

    I will test all the rest browsers, but as the other browsers were correctly processing even simply the text, then with proper XML – there should not be any problem.

    Thank you guys for efforts to help me.

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

Sidebar

Ask A Question

Stats

  • Questions 509k
  • Answers 510k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer One of the advantages of good encapsulation is to "force"… May 16, 2026 at 4:49 pm
  • Editorial Team
    Editorial Team added an answer Sounds like you're looking for CountDownLatch. CountDownLatch latch = new… May 16, 2026 at 4:49 pm
  • Editorial Team
    Editorial Team added an answer Open Design Draw Something File | Export Format = WPF… May 16, 2026 at 4:49 pm

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I've got a php backend which delivers a time (e.g. '07:00:00'). This time is
I have a PHP frontend and a C++ backend, and I need to be
I'm using JSON to communicate some data through AJAX from the backend to the
I am working on a comment script using PHP and jquery. My jquery post
im going to use ajax/comet to create a chat. and i want to store
ok, so i can't tell if this is a server issue or what. i've
I wonder what patterns are there for handling errors in PHP? I'm close to
I am using a third party shopping cart that sends a registration form to
I am building a PHP comet based application. Which web server should I use
I have PHP file where I have defined the server access variables as well

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.