rem: var newItem = xmlDoc.getElementsByTagName("item")[0]; var channel = GeoMashup.locations[point].xmlDoc.getElementsByTagName("channel")[0]; if (channel && newItem) { channel.appendChild(newItem); } 
add: var newItem = request.responseXML.getElementsByTagName('item')[0]; var channel = GeoMashup.locations[point].xmlDoc.getElementsByTagName('channel')[0]; channel.appendChild(newItem); 
context: GeoMashup.createMarker = function(point) {	var marker = new GMarker(point);	// Show this markers index in the info window when it is clicked	GEvent.addListener(marker, "click", function() {		// The loading window is late to show up - may replace it 		// with a message div 		marker.openInfoWindowHtml('Loading...');		GeoMashup.loading = true;	});	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.linkDir + '/geo-query.php?post_id=' + post_id;					// Use a synchronous request to simplify multiple posts at a location					request.open('GET', url, false);					try {						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;					} catch (e) {						alert('Request for post ' + post_id + ' failed: ' + e);					}				} // 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	GEvent.addListener(marker, 'infowindowclose', function() {		var geoPost = document.getElementById('geoPost');		if (geoPost && geoPost.firstChild) {			geoPost.removeChild(geoPost.firstChild);			GeoMashup.showing_url = '';		}	});	return marker;}
meta: 6742	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6742/b30fddde902bbdcd632a599a4f167a398d023252/geo-mashup.js/clean/geo-mashup/geo-mashup.js