New Media Initiatives Blog

Technology at the Walker Art Center

Part of: blogs.walkerart.org

 
by Brent Gustafson at 11:28 am 2005-02-24
Filed under:

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.

 

Leave a comment:





You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <code> <em> <i> <strike> <strong>

Keep up to date:

With an RSS feed for this post's comments. If you leave a comment you may subscribe to comment notification emails.


Powered by WordPress