SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
-
Jul 26, 2006, 07:43 #1
- Join Date
- Jun 2006
- Posts
- 16
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
dealing with ajax returned text as xml
i'm just missing something here. im following this:
http://www-128.ibm.com/developerwork...wa-ajaxintro2/
(and comparing it with a dozen other tutorials) but it (and all the other examples) only have the called page return plain text. i've modified my example to return some xml:
Code:<client> <name>corey</name> <color>blue</color> </client> <client> <name>nick</name> <color>red</color> </client>
Code:var result = http_request.responseText;
Code:var clientList = result.getElementsByTagName("client");
corey
-
Jul 26, 2006, 08:26 #2
- Join Date
- Jun 2006
- Posts
- 16
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
nevermind. i got it. changing:
http_request.overrideMimeType('text/xml');
and:
var result = http_request.responseXML;
did it.
thx.
corey
Bookmarks