XMLHttpRequest

Our ticketing software will be undergoing maintenance on Monday, May 19. During this time, we will not be able to process ticket or membership orders.

Skip to main content
Walker News

XMLHttpRequest

I’m currently working on adapting something called XMLHttpRequest into our Web Admin. XMLHttpRequest is used by Google in their new Google Suggest. The basic premise is to pull data from an XML file and load it into the current page without refreshing said page, all using Javascript. It’s super slick and can really help what now is a mess of iframes and page refreshes in our Admin.

Apple has been kind enough to provide a use case example of XMLHttpRequest in action. The functionality of this is almost exactly the same as what we are doing with the media in our admin. The code is fairly stripped down and reusable, which is great. Going through the code, the functions are called in this order:

Select Pulldown

loadDoc()

loadXMLDoc()

processReqChange()

clearTopicList()

buildTopicList()

appendToSelect()

Select Field

showDetail()

getElementTextNS()

I’m still playing with it, but intend to make it a little more universal (Apple’s implimentation has a few hardcoded variables in it that we should probably fix). I’ll post an updated version of this to our NMI Wiki for others to use when I have it done.

While this solves the Pull side of things, we still would like to solve the refresh on Push from a few things in our Admin as well. Luckly there’s something for us here, and it builds on XMLHttpRequest. It’s called AJAX. I’ll be looking into this shortly.

Get Walker Reader in your inbox. Sign up to receive first word about our original videos, commissioned essays, curatorial perspectives, and artist interviews.