function showInfoWindow(resultset, mpPoint) {
try {
strContent = "";
var strHeader = "<tr height=40px><th align=center bgcolor=#027895><font color=#000000>رقم صافرة الإنذار</th><th align=center bgcolor=#027895><font color=#000000>المنطقة</th><th align=center bgcolor=#027895><font color=#000000>المحافظة</th><th align=center bgcolor=#027895><font color=#000000>المدينة</th><th align=center bgcolor=#027895><font color=#000000>نوع الموقع</th><th align=center bgcolor=#027895><font color=#000000>الوصف</th><th align=center bgcolor=#027895><font color=#000000>موقع الصافرة</th><th align=center bgcolor=#027895><font color=#000000>خط الطول</th><th align=center bgcolor=#027895><font color=#000000>دائرة العرض</th><th align=center bgcolor=#027895><font color=#000000>رقم النطاق</th></tr>";
strContent = strContent + "<tr>" + "<td align=center >" + "<a href=Images/images/" + resultset.features[0].attributes.SIREN_NO + ".jpg" + " target=_blank >" + resultset.features[0].attributes.SIREN_NO + "</a> " + "</td>" +
"<td align=center>" + resultset.features[0].attributes.Reg_A + "</td>" +
"<td align=center>" + resultset.features[0].attributes.Prov_A + "</td>" +
"<td align=center>" + resultset.features[0].attributes.City_A + "</td>" +
"<td align=center>" + resultset.features[0].attributes.Feature_Ty + "</td>" +
"<td align=center>" + resultset.features[0].attributes.Descriptio + "</td>" +
"<td align=center>" + resultset.features[0].attributes.Location + "</td>" +
"<td align=center>" + resultset.features[0].attributes.POINT_X + "</td>" +
"<td align=center>" + resultset.features[0].attributes.POINT_Y + "</td>" +
"<td align=center>" + resultset.features[0].attributes.Zone_No + "</td>" +
"</tr>";
map.infoWindow.resize(strHeader.length, strHeader.length);
strHeader = "<table border='5'>" + strHeader + strContent + "</table>";
map.infoWindow.setContent(strHeader);
map.infoWindow.show(map.toScreen(mpPoint), map.getInfoWindowAnchor(map.toScreen(mpPoint)));
}
catch (err) {
txt = "There was an error on this page.\n\n";
txt += "Error description: " + err.message + "\n\n";
txt += "Click OK to continue.\n\n";
alert(txt);
}
}
same code works for other places.pls help.