J
juergen.riemer
Hi all,
I create an IFrame and want to dynamically add content to it in Opera
(8.54) like this:
<html>
<body>
<script>
oPanel = document.createElement("IFRAME");
oPanel.src = "about:blank";
document.body.appendChild(oPanel);
oPanel.addEventListener("load", function(){
var oImage = oPanel.contentDocument.createElement("IMG");
oPanel.contentDocument.body.appendChild(oImage);
}, false);
</script>
</html>
</body>
I get the following error message:
-----
Event thread: load
Error:
name: Error
message: Security violation
-----
I learned about problems Opera has to not apply anti cross domain
policy when dealing with frames. But how to solve this? Any idea?
greetz
mord
I create an IFrame and want to dynamically add content to it in Opera
(8.54) like this:
<html>
<body>
<script>
oPanel = document.createElement("IFRAME");
oPanel.src = "about:blank";
document.body.appendChild(oPanel);
oPanel.addEventListener("load", function(){
var oImage = oPanel.contentDocument.createElement("IMG");
oPanel.contentDocument.body.appendChild(oImage);
}, false);
</script>
</html>
</body>
I get the following error message:
-----
Event thread: load
Error:
name: Error
message: Security violation
-----
I learned about problems Opera has to not apply anti cross domain
policy when dealing with frames. But how to solve this? Any idea?
greetz
mord