Closed Thread
Results 1 to 3 of 3

Thread: ajax response as xml?

  1. #1
    Join Date
    Sep 2007
    Location
    Karlstad, Sweden
    Posts
    3,082
    Blog Entries
    7
    Rep Power
    42

    ajax response as xml?

    hello there... I'm trying out some ajax now...

    my problem is that the response comes into the resonseTEXT, not into responseXML, even though it's a valid xml (according to w3schools). The xml is php generated.

    [highlight="xml"]
    <?xml version="1.0" encoding="UTF-8"?>
    <options>
    <unit id='1'>Swedish Paratroopers</unit>
    <unit id='3'>Swedish army</unit>
    </options>
    [/highlight]

    Any ideas?

    it wont show up as xml in the browser either, so maybe there is something wrong anyway?

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Location
    Advertising world
    Posts
    Many

     
  3. #2
    Join Date
    Sep 2007
    Location
    Karlstad, Sweden
    Posts
    3,082
    Blog Entries
    7
    Rep Power
    42

    Re: ajax response as xml?

    I fixed it, of course, I needed to set "content type: text/xml" in the header...

  4. #3
    Jordan Guest

    Re: ajax response as xml?

    I ran into that same problem when I made my first AJAX problem. I posted a tips and tricks somewhere which included this error, but I cannot find it.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How to decompress Gzip and Chunked HTTP response?
    By sysman in forum C# Programming
    Replies: 0
    Last Post: 10-21-2011, 07:21 PM
  2. Replies: 2
    Last Post: 06-10-2011, 09:21 AM
  3. How to save ajax response?
    By wojtekkk87 in forum AJAX
    Replies: 3
    Last Post: 05-11-2009, 10:06 AM
  4. .net Remoting HttpWebRequest/Response isn't remotable?
    By arcozz in forum C# Programming
    Replies: 0
    Last Post: 03-24-2009, 12:08 PM
  5. gsosys Welcome Response
    By gsosys in forum Introductions
    Replies: 6
    Last Post: 05-16-2008, 10:18 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts