Trusted Form Custom Task Pane Permission Denied

E

ElVino

Ive seena few posts based around this question but most seem to concentrate
on managed code. I have created a trusted form that uses a Custom Task Pane.
the form just uses JavaScript and NO managed code.

I am trying to create context menus for the user and have created
<div></div> code in the htm for each of the taskpane menus.

I then try to set the taskpane menu by calling

g_oTaskPane.HTMLDocument.parentWindow.SelectView("TP_Admin");

(Ithink I nicked most of the code from the InfoPath SDK!!)

This results in a "Permission denied" error in the trusted solution but not
in the untrusted solution.

Any ideas would be useful.
 
E

ElVino

No this is all I call!!

Try making your form full trust and see if you get the same result!!
 
S

Steve van Dongen [MSFT]

Ive seena few posts based around this question but most seem to concentrate
on managed code. I have created a trusted form that uses a Custom Task Pane.
the form just uses JavaScript and NO managed code.

I am trying to create context menus for the user and have created
<div></div> code in the htm for each of the taskpane menus.

I then try to set the taskpane menu by calling

g_oTaskPane.HTMLDocument.parentWindow.SelectView("TP_Admin");

(Ithink I nicked most of the code from the InfoPath SDK!!)

This results in a "Permission denied" error in the trusted solution but not
in the untrusted solution.

Any ideas would be useful.

<URL:
http://groups-beta.google.com/group...65f63688317,dfee36728a8fa752,bfb65581c732f13f
/>

Regards,
Steve
 
B

Brian Teutsch [MSFT]

It appears this may be a bug with InfoPath. I'll let you know if we find a
workaround for the issue.

Brian

"Greg Collins [InfoPath MVP]" <Greg.Collins_AT_InfoPathDev.com> wrote in
message Interesting... I do essentially the same thing with no issue (though my form
is not full trust).

Can you access any other functions in your task pane script? Is it just
SelectView that is causing the problem?

--
Greg Collins [InfoPath MVP]
Please visit: http://www.InfoPathDev.com



Ive seena few posts based around this question but most seem to concentrate
on managed code. I have created a trusted form that uses a Custom Task Pane.
the form just uses JavaScript and NO managed code.

I am trying to create context menus for the user and have created
<div></div> code in the htm for each of the taskpane menus.

I then try to set the taskpane menu by calling

g_oTaskPane.HTMLDocument.parentWindow.SelectView("TP_Admin");

(Ithink I nicked most of the code from the InfoPath SDK!!)

This results in a "Permission denied" error in the trusted solution but not
in the untrusted solution.

Any ideas would be useful.
 
E

ElVino

Err I think I may have sorted out the problem using Steve's link and removing
muppet error lol. Am testing deployment shortly so hopefully should be able
to close this thread.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top