We are using FormAPI to dynamically populate a drop down menu on the DCT. We are making a call to a servlet on a remote server with the callServer function:
var params = new Object();
params.owner = "author1";
IWDatacapture.callServer("
http://remoteserver/applications/ies/approval/app/approvalServlet", params, true);
The servlet returns the following page which sets the values:
<html>
<head>
<script language="javascript">
onerror=handleMyError;
api = parent.getScriptFrame();
newOptions = new Array();
newOptions[0] = new Option("isd", "isd", true, true);
newOptions[1] = new Option("INTSVCS", "INTSVCS", false, false);
api.IWDatacapture.getItem("/Department/Approver Group").setOptions(newOptions);
function handleMyError(desc) { alert(desc); }
</script>
</head>
<body></body>
</html>
When the DCT loads, Javascript returns a Permission Denied error. If I comment out all of the references to the script frame, I don't get the error. Any help would be appreciated.