Hello,
I wondering if someone could help me please. We have recently upgraded the GroupDocs Viewer from 2.7.0.0 to 2.15.1.0. In doing so we now get JavaScript errors with some of our code. I believe this is related to the different versions of knockout.js that is embedded in the assembly. In the newer version it appears to be 3.2.0 while previously it was 3.0.0.
The code where we get the error on is the following:
var curPopupIcon = $(this).clone(true);
// place the copy next to the document type icon
var docTypeColumn = $(this).parent().prev();
$(docTypeColumn).append(curPopupIcon);
The error occurs on the last line with:
SCRIPT65535: Invalid calling object
knockout-3.2.0.js, line 75 character 103
I have spent several days looking on the internet for any possible solution and have yet to find a cause or fix to this problem.
Additional information is that this only occurs in IE9 compatibility mode. We have some functionality in our Product that Iframes in a SharePoint page where the Viewer is embedded. Because of limitations which we can't change the fact that when SharePoint is iframed into the Product it throws it into IE9 compatibility mode.
I have however replicate the same issue when navigating to SharePoint outside of the iframe by changing the Browser Mode to IE9 Compat View and Document Mode to IE9 Standards via IE Developer Toolbar.
Any help would be most appreciated.