Thomas (boggyb) wrote,
Thomas
boggyb

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.
Tags: work
Subscribe

  • Misty creek and eerie fog

    So today started grey, and as the afternoon went on Fareham creek became very misty... The skies cleared for a brief moment as the sun…

  • Pokémon Go

    I've been playing a lot of Pokémon Go while out on walks, and experimenting with the AR photo mode... Cross-posted to deviantArt Cross-posted…

  • Random photo

    Just a random photo taken in the local sensory garden, while out and about today... There was just something that caught my eye about the…

  • Post a new comment

    Error

    default userpic
    When you submit the form an invisible reCAPTCHA check will be performed.
    You must follow the Privacy Policy and Google Terms of use.
  • 1 comment