Focal Point
[SHARING] script70 permission denied

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/7971057331/m/4907007376

November 26, 2014, 10:22 AM
stur0063
[SHARING] script70 permission denied
We had an issue where an *.html page became unresponsive with a script70 permission denied message.

We had a dropdown - that fired some onchange JavaScript. JavaScript was as follows:

function combobox1_onchange(event) {
                var eventObject = event ? event : window.event;
                var ctrl = eventObject.target ? eventObject.target : eventObject.srcElement;
                $("#iframe1").contents().find("body").html('');
                var selectedValue = $('#combobox1').val();
                if(selectedValue!='FOC_NOSELECTION')
                {
                    $("#button2").trigger("click");
                }
}



My JavaScript, in a nutshell, clears our the iFrame – then pushes a hidden button that has a task tied to it to run a report an stick it back into said iFrame.

This was a confusing one - as it worked for many people - but occasionally threw the error - then the page turns into a brick.

After some research - it appeared to be with javascript getting "hook" to iFrame.


The issue appears to be Client side JavaScipt doing a clear of the iFrame – at the same time as the click button trying to also put stuff into the same iFrame. It looks like, depending upon latency, the two statements fight for the iFrame. (Bit of speculation on my part - but appears to be true).

In the end - I just re-wired the JavaScript to NOT clear the frame - then click the button.

New JavaScript

function combobox1_onchange(event) {
	var eventObject = event ? event : window.event;
	var ctrl = eventObject.target ? eventObject.target : eventObject.srcElement;
	var selectedValue = $('#combobox1').val();
	if(selectedValue!='FOC_NOSELECTION')
	{
	    $("#button2").trigger("click");
	}
	else
	{
	    $("#iframe1").contents().find("body").html('');  
	}
}



Figured I share in case anyone else sees the script70 permission denied issue.

This message has been edited. Last edited by: <Kathryn Henning>,


webFOCUS 8207.15
WindowsServer 2019