I wanted to ask for some advice on where can I update my infowindow in case if there are no news for the area. I will show you what I have already tried.
function showInfo(marker, content)
{
// start div
var div = "<div id='info'>";
if(typeof(content) === "undefined")
{
// http://www.ajaxload.info/
div += "<img alt='loading' src='img/ajax-loader.gif'/>";
}
else
{
if(jQuery.isEmptyObject(content))
{
div+="No news today!!";
}else{
div += content;
}
}
// end div
div += "</div>";
// set info window's content
info.setContent(div);
// open info window (if not already open)
info.open(map, marker);
}