custom taskpane aspx - permission denied error

  • Thread starter Hakan Aygun (Enova)
  • Start date
H

Hakan Aygun (Enova)

Hi all,

I implemented urn-based fully trusted infopath form for one our current
workflow projects. The infopath form has custom task pane for the action
buttons which are dynamically created. To create custom pane, I added
TaskPaneLoader.htm in resources and select this resource file as task pane
html. The code of TaskPaneLoader.htm as follows:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<script language="jscript">

var gobjXDocument = null;
function init()
{
gobjXDocument = window.external.Window.XDocument;
}

function loadTaskPane()
{
var userName = gobjXDocument.Extension.GetUserName();
var wfID = gobjXDocument.Extension.GetWFID();
var step = gobjXDocument.Extension.GetStep();
var language = gobjXDocument.Extension.GetLanguage();

document.location =
"http://servername/InfopathTaskPane/Taskpane.aspx?cmd=CreateTaskPane&userName=" + userName + "&wfID=" + wfID + "&language=" + language + "&step=" + step;
}

</script>
</head>
<body onload="javascript : init(); loadTaskPane();">
</body>
</html>

Taskpane loader html get all necessary info from Infopath XDocument and
forwards all these info to http://servername/InfopathTaskPane/Taskpane.aspx.
Our infopath form works well upto these point. Taskpane.aspx renders html
(action buttons) code and this html code again includes client side java
script to access Infopath XDocument. But I got "Permission denied"
Javascript error when clint side code was executed. Although the following
code worked well in TaskPaneLoader.htm, aspx rendered html code raises
Permission Denied error.

var gobjXDocument = null;
function init()
{
gobjXDocument = window.external.Window.XDocument;
}

I also added "http://servername/" IE trusted site but I got the same error.

What can I do to fix the problem?

Thank in advance

Hakan Aygun
 
H

Hakan Aygun (Enova)

I want to make an addition to my previous posting:

I published the Infopath form as a form library on SPS.

Thanks
 

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