I can't tell you exactly how they do it (as I didn't actually read their script), but I think one thing you might want to look at would be: javascript and httpXmlRequest (I think thats what it is called), check out this link, it may be of some help:
http://www.activewidgets.com/active.http.request/