I will explain the scenario.
I have a Main page with several Iframes in it. One of the frames has a page (let’s call it Opener)which has a button on it, onclick of which a pop up window opens. The script to open the page comes from the database entry.
// Open window is JS function defined in the Main page.
In the popup page I have a link which calls the JS function of the Main page. While clicking this link to call the JS function I get the permission denied error.
The onclick event of link fires the following Jscript function.
var floorIdEle = document.getElementById("_floorId");
if (floorIdEle != null)
There is absolutely no problem in getting the opener page and though getting the opener.parent.parent page.
The problem starts when I reload the opener.parent page through the JS function which is in opener.parent.parent page.
For the first time it works perfectly fine. But from second time onwards, ( the page is reloaded in the first instance), it doesn't permit me to access it.
Here is the JS function ( present in the opener.parent.parent)
// function refreshFloorPlan()
function displayRFP(locCode, flr)
_breadCrumbCallback.Callback("floor#" + locCode+"#"+flr);
var frameUrl = "./loading.aspx?forwardUrl=./Viewer/Viewer.aspx!"; frameUrl = frameUrl + "floorId=" + flr +"|view=floormap" ;
var param = "floor#"+flr+"$ dummy"; _detailMenuCallback.Callback(param);
MapFrame.document.location = frameUrl; var urlParam = "facility=" + "|bldg=|floor="+flr+"|space=|report=floor|mode=";
If I do some other operation like getting an element from opener.parent.parent page, everything works fine.
I guess whenever the page is reloaded, it assumes that the domain has been changed, whereas the domain is still "localhost" for all the pages.
Please note the domain of all the page is localhost.
Could anyone please give me some clue to resolve this issue.
Thanks in advance