marin
12 years agoFrequent Contributor
Calling a script on a web page causes "Permission denied" error in IE9
Hello all,
in my test project I have a method that calls a JavaScript function in the tested page (a page with an infragistics grid control) via contentDocument.Script:
This is to obtain reference to the grid in order to perform various actions in its cells.
It works perfectly in Firefox 22 but does not work on IE9 -> there I get a runtime error in JScript with "Permission denied." message.
I guess it must be some security setting for Internet Explorer, but all my attempts to set the right configuration are futile.
TestComplete version is 9.30.3373.7 on a Win 7 Professional x64.
I wonder if somebody could point me in the right direction?
Many thanks for any hints.
Marin
in my test project I have a method that calls a JavaScript function in the tested page (a page with an infragistics grid control) via contentDocument.Script:
var myGrid = myPageObj.contentDocument.Script.igtbl_getGridById(myID)
This is to obtain reference to the grid in order to perform various actions in its cells.
It works perfectly in Firefox 22 but does not work on IE9 -> there I get a runtime error in JScript with "Permission denied." message.
I guess it must be some security setting for Internet Explorer, but all my attempts to set the right configuration are futile.
TestComplete version is 9.30.3373.7 on a Win 7 Professional x64.
I wonder if somebody could point me in the right direction?
Many thanks for any hints.
Marin