Hi all,
I've been trying to solve this problem, but i can't get it to work...
Problem
Access denied message when trying to access the DOM from custom task pane jscript code:
var objDOM = window.external.XDocument.DOM;
Situation
InfoPath 2007 form:
-
Form requires full trust
-
Form is installed with help of regform.exe & MSI
-
-
Custom task pane needs to set a value in a datasource
-
Not a browser form
-
No InfoPath 2003 compatibility
Internet Explorer settings:
I've tried...
| |
Access denied? |
| Lowering form security setting from Fully trusted to Domain |
No |
| Adding http://server to Internet Explorer Trusted websites |
Yes |
| Add taskpane.HTML (and .js) to the recourse files and refer to its location |
No |
| Create a temporary certificate, sign the form and publish it to http://server/path |
Yes |
| Create a temporary certificate, sign the form and publish it to http://server/path, add http://server to Internet Explorer Trusted websites |
Yes |
According to http://msdn2.microsoft.com/en-us/library/bb229917.aspx the DOM property (or GetDOM method) has security level 2:
Security Level 2: Can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.
The type of identification used and the domain (location) from which the form template is opened determines which Internet Explorer security zone permissions the form will inherit.
If I read statements above I expected the ‘Create a temporary certificate, sign the form and publish it to http://server/path’ to work.
So basically i want a fully trusted form with a external task pane that updates the form DOM.
Am I doing something wrong here? Am I trying to reach the impossible? Are there any alternatives?
Regards,
Albert