Last night I was putting together an app downloading the NYC MTA Service Status XML file from
http://mta.info/status/serviceStatus.txt. I set handleAs in the AJAX component to XML, but the inResponse argument to my response callback kept coming in empty. When I changed the handleAs to text or json, I'd get a string containing the XML (which I can handle).
I'm wondering if I'm doing something wrong with my call. Any advice?
0 · ·
Comments
I'd request as text then pass it into the JS XML engine manually.
- Spam
- Abuse
0 · Off Topic Insightful ·- Spam
- Abuse
0 · Off Topic Insightful ·