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?
I fixed it, of course, I needed to set "content type: text/xml" in the header...
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks