Ticket #9046 (closed bug: invalid)
$(document).ready happens too soon in IE and causes Bing Map undefined error when drawing a polygon
|Reported by:||arsen||Owned by:||arsen|
There seems to be an issue on pages that are based on ASP.NET Web Forms (with ScriptManager) platform and that include Bing Maps API v7.0
When the map is initialized in the $(document).ready jQuery function, it appears to happen a bit too early and results in intermittent "undefined" errors in veapicore.js.
To fix the problem, the map initialization code needs to be moved from $(document).ready to Sys.WebForms.PageRequestManager.getInstance().add_pageLoaded() event handler.
The pageLoaded() always happens AFTER the $(document).ready and the undefined error is resolved.
It is possible that there is something special about IE browser and Bing Map V7 that uses VML or other elements that load slower and that $(document).ready is not catching these.
- Owner set to arsen
- Priority changed from undecided to low
- Status changed from new to pending
- Component changed from unfiled to core
- Status changed from pending to closed
- Resolution set to invalid