Hi,
I’m using dhxWins to display a glossary, and want to hide the top menu (for more visibility).
The site is displayed correctly but when I try to access to an Iframe content, I’ve got an error message:
“Permission Denied to access Window.document Property”
Here’s the code :
if (!win) {
win = dhxWins.createWindow("id_win", 125, 20, 880, 500);
win.button('park').hide();
win.setText("Demandeur");
win.attachEvent("onClose", function(win){win.setModal(false);win.hide();});
}
else {
win.show();
}
win.setModal(true);
win.center();
win.attachURL('http://monsite.com/?a=b&c=d');
win._frame.onload = function () {
win._frame.contentWindow.document.getElementById('header').display = "none";
}
Same error with “.style.visibility = “hidden””
And the error message (in French)
Message : Permission refusée à <http://devel> d'obtenir la propriété Window.document de <http://monsite.com>.
Do I make an error somewhere ?
Thanks for helping.