Access denied
I have a problem with showModalDialog.
The cause of error is on internet explorer security patch (Object Cache).
This is an example:
Create two pages:
1) test.htm
<html>
<head>
<script language=javascript>
function apri ()
{
try{
var ret;
ret = window.showModalDialog ( "test_pop.htm","","dialogWidth:200px;dialogHeight:200px;center:yes;help:no;scroll:no;status=no");
//alert(ret);
t1.value = ret.a; // autorizzazione negata.
t2.value = ret.b;
}
catch(e){
en = e.number & 0xFFFF;
ed = "Errore:" + en + " - " + e.description;
alert(ed);
}
}
</script>
</head>
<body>
<table border=0>
<tr>
<td><input type=text id="t1" name="t1"></td>
<td><input type=text id="t2" name="t2"></td>
<td><input type=button value="..." onclick="apri()"></td>
</tr>
</table
</body>
</html>
2) test_pop.htm
<html>
<head>
<script language=javascript>
function OnClick (src)
{
try{
//alert(src.a);
window.returnValue = src;
window.close();
}
catch(e){
alert("Errore:" + e.number & 0xFFFF);
}
}
</script>
</head>
<body>
<table border=1>
<tr a="A" b="B" onclick="OnClick(this)">
<td>Clicca qui</td>
</tr>
</table
</body>
</html>

