6.5. more Frequently asked questions
Hey there. Look, I know it's not my chapter, but I really think you might be interested in one of my DOM trees. Oh my god. I'm finally starting to make some progress, and now Paul Bunyan wants to talk about selling me a bush. Remember Mike from back in Chapter 4? He's the owner of the Webville tree farm. Mike: Not a bush... a tree. And not just any tree; I've got a DOM tree you'd just love. Server: Are you paying attention? Do you see me on this couch, and the nut with a notepad and bad accent? I'm not really looking to go into landscaping. Mike: Well, I couldn't help but overhear you mention that you're sending XML back in your responses now. Server: Yes, that's right... I really have communication issues, and Ziggy here thinks XML will help browsers allow me to say a lot more and still be understood. Mike: Sounds like good advice to me. But how's a browser supposed to do anything with your XML? It's not that easy to parse an XML document, you know. Server: What? Are you serious? You mean, all this work, and I'm still not going to be understood? Let me just find a toaster and a bathtub, and be done with it all! Mike: That's what I'm here for, though! The browserand JavaScriptcan understand your XML. Any code that needs to read your XML response can just work with it using the DOM... and then everyone's happy. Server: Yes! Well, let's get that DOM growing, then. I think I can see the light... |