So, here is something bizzar: I have a partial view, which is been refreshed using jQuery:
<script>
$(function () {
$('#loadFromMainFrame').click(function (e) {
e.preventDefault();
console.log("partial load begins here. ");
$('#partialParkingDetails').load("/ParkingSpots/GetSearchResult");
});
});
</script>
And the button of question and HTML partial is:
<div id="partialParkingDetails">
@{
ViewBag.ListDescription = "Test List ParkingSpot:";
Html.RenderAction("GetSearchResult");
}
</div>
<button id="loadFromMainFrame">Load from mainframe</button>
<div id="map-canvas"></div>
the Controller contains:
public ActionResult GetSearchResult(int id=0, ....)
{
var parkingspots = from s in db.ParkingSpots select s;
....
return PartialView("_SearchResult", parkingspots.ToList());
}
Worth noting is that everything is working okay when google maps is not involved. whenever I start to try to update some google maps components, I get the error.
Are they related? what did I do wrong? thanks!