All pastes #202591 Raw Edit

Keloran

public text v1 · immutable
#202591 ·published 2006-10-14 16:45 UTC
rendered paste body
function displayWindows(){
	if(this.req) {
		if(this.req.responseXML) {
			var xmlDoc = this.req.responseXML;
			var xmlRoot = xmlDoc.getElementsByTagName("windows")[0];
			var windows = xmlRoot.getElementsByTagName("window");
		} else {
			alert("Error " + this.req.responseText);
		}

		for(i = 0; i < windows.length; i++) {
			windowAttrs = windows[i].attributes;

			windowId = windowAttrs.getNamedItem("windowId").value;
			xPos = windowAttrs.getNamedItem("xPos").value;
			yPos = windowAttrs.getNamedItem("yPos").value;
			cTitle = windowAttrs.getNamedItem("cTitle").value;

			CreateWindow(new NewWin(windowId, xPos, yPos, cTitle, true));
			createSpinny("if_" + windowId);
		}
	}
}