I have simplified my problem as much as possible. This only happens in Internet Explorer (9 and 10 confirmed). I have a page with this:
<html> <body> <span data-bind="text:$data[0].Mileage"></span> <script type="text/javascript"> window.initChild = function (ko, viewModel) { window.ko = ko; ko.applyBindings(viewModel, document.body); } </script> </body> </html>
My SPA challenges
var otherWindow = window.open('myurl', '_blank'); var handler = function () { otherWindow.initChild(ko, report); }; if (otherWindow.addEventListener) { otherWindow.addEventListener('load', handler, false); } else if (otherWindow.attachEvent) { otherWindow.attachEvent('onload', handler); }
I checked the data goes into the initChild method.
If I bind ANYTHING on the page, I get a HierarchyRequestError in the applyBindings call. My google-fu completely left me on this, I absolutely do not know what happened.
source share