rem: request.send(null); var xmlDoc = request.responseXML; if (!GeoMashup.locations[point].xmlDoc) {  GeoMashup.locations[point].xmlDoc = xmlDoc; } else {  var newItem = xmlDoc.getElementsByTagName("item")[0]; var channel = GeoMashup.locations[point].xmlDoc.getElementsByTagName("channel")[0]; if (channel && newItem) { channel.appendChild(newItem); } } GeoMashup.locations[point].loaded[post_id] = true; 
add: try { request.send(null); var xmlDoc = request.responseXML; if (!GeoMashup.locations[point].xmlDoc) {  GeoMashup.locations[point].xmlDoc = xmlDoc; } else {  var newItem = xmlDoc.getElementsByTagName("item")[0]; var channel = GeoMashup.locations[point].xmlDoc.getElementsByTagName("channel")[0]; if (channel && newItem) { channel.appendChild(newItem); } } GeoMashup.locations[point].loaded[post_id] = true; } catch (e) { alert('Request for post ' + post_id + ' failed: ' + e); } 
context: 	GEvent.addListener(marker, "infowindowopen", function() {		if (GeoMashup.loading) {			var request = new GXmlHttp.create();			// Load all posts at the marker location			for(var i=0; i<GeoMashup.locations[point].posts.length; i++) {				var post_id = GeoMashup.locations[point].posts[i];				if (!GeoMashup.locations[point].loaded[post_id]) {					// The post RSS XML has not been loaded yet, request it					var url = GeoMashup.rssUri + '?p=' + post_id;					// Use a synchronous request to simplify multiple posts at a location					request.open('GET', url, false);					request.send(null);					var xmlDoc = request.responseXML;					if (!GeoMashup.locations[point].xmlDoc) {						// This is the only post, use the XML as it is						GeoMashup.locations[point].xmlDoc = xmlDoc;					} else {						// There are multiple posts here, append this one to the others						var newItem = xmlDoc.getElementsByTagName("item")[0];						var channel = GeoMashup.locations[point].xmlDoc.getElementsByTagName("channel")[0];						if (channel && newItem) {							channel.appendChild(newItem);						}					} 					GeoMashup.locations[point].loaded[post_id] = true;				} // end if not loaded			} // end location posts loop			GeoMashup.loading = false;			var html = GeoMashup.renderRss(GeoMashup.locations[point].xmlDoc);			marker.openInfoWindowHtml(html);		} 	}); // end marker infowindowopen
meta: 6742	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6742/cc9f5b93e4f4285a2ef6d8948397f6d63a63bfae/geo-mashup.js/clean/geo-mashup/geo-mashup.js