torkell: (Default)
[personal profile] torkell
So today at work I ended up explaining to a colleague that XMLHttpRequest isn't just for JSON, but that it can parse XML documents and turn them into a nice object structure. He was thinking that I'd have to receive the XML as text and use some XML-to-JS library to parse it (which to be fair I may still have to do - some of the code I'm writing will run server-side where XMLHttpRequest doesn't exist).

For those who don't know their web development history, the original point of XMLHttpRequest was to let JavaScript make XML requests and handle XML responses. Using it for JSON came much later.

Date: 2015-11-05 02:50 am (UTC)
From: [identity profile] crschmidt.livejournal.com
I assume that he wasn't actually using XMLHttpRequest directly, but some wrapper that made it less obvious what it was for?

May 2025

S M T W T F S
    123
45678910
111213141516 17
18192021222324
25262728293031

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jun. 9th, 2025 11:18 am
Powered by Dreamwidth Studios