I would like to refresh ArcGIS map on the page when my ajax completes call. I have a function that gets executed when ajax completes call in that function i have:
function onAjaxSuccess()
{
map.setExtent(map.extent);
mapLayer.refresh();
}
but map does not get refreshed.