I explored this from this. There are a few posts about this on Stackoverflow, but I have no answer.
Like the other posts here, it works great in Chrome or Firefox. But in IE 9, 8, 7 and 6, I get the same error. I tried to hack when you insert 9 into compatibility mode, but this does not solve the problem.
Speaking Unable to get value of the property 'styleHelper': object is null or undefined
, the irony is that if I - in IE 9 - type window.microstrategy.bone("W2552_Ctl").styleHelper
in the console, it works and returns the function I need (this identifier was created by WYSIWYG, I do not hate me).
Yes, everything is wrapped in $(document).ready
. Yes, no typos. I do not understand why IE hates so much. Any help would be appreciated :)
This code is a simple variable declaration.
var ctlBone = window.microstrategy.bone(targetId + "_Ctl").styleHelper.ctlBone;
It seems like IE is trying to access this object right then and there, rather than assigning it.
source share