Änderungen Kommunikation implementiert zwischen iFrame und Fenstern.

This commit is contained in:
ja
2021-09-27 16:40:55 +02:00
parent a959ff1c93
commit 6b6faa826d
4 changed files with 35 additions and 22 deletions

View File

@@ -550,10 +550,10 @@
</a> -->
<asp:LoginView ID="LoginView1" runat="server" ClientIDMode="AutoID">
<AnonymousTemplate>
<iframe id="frame1" sandbox="allow-same-origin allow-top-navigation allow-scripts allow-popups allow-forms" src="/login/login_FLEX.aspx" runat="server" seamless="seamless" style="width:300px;height:300px;overflow:no-content;background-image:none;" scrolling="no" />
<iframe name="frame1" sandbox="allow-same-origin allow-top-navigation allow-scripts allow-popups allow-forms" src="/login/login_FLEX.aspx" runat="server" seamless="seamless" style="width:300px;height:300px;overflow:no-content;background-image:none;" scrolling="no" />
</AnonymousTemplate>
<LoggedInTemplate>
<iframe id="frame2" sandbox="allow-same-origin allow-top-navigation allow-scripts allow-popups allow-forms" src="/login/Loggedin.aspx" runat="server" seamless="seamless" style="width:300px;height:300px;overflow:no-content;background-image:none;" scrolling="no" />
<iframe name="frame2" sandbox="allow-same-origin allow-top-navigation allow-scripts allow-popups allow-forms" src="/login/Loggedin.aspx" runat="server" seamless="seamless" style="width:300px;height:300px;overflow:no-content;background-image:none;" scrolling="no" />
</LoggedInTemplate>
</asp:LoginView>
<div style="height:10px"></div>
@@ -618,14 +618,22 @@
}
}
</script>
<script type="text/javascript">
window.onmessage = function (event) {
if (event.data == '717858') {
alert("")
console('KDN received!');
return '717858';
}
};
<script type="text/javascript">
$(document.ready(function () {
var x = window.frame1.zipphone1_1;
alert(x);
var y = window.frame1.zipphone1_2;
alert(y);
var z = window.frame1.zipphone1_3;
alert(z);
var x = window.frame1.zipphone2_1;
alert(x);
var y = window.frame1.zipphone2_2;
alert(y);
var z = window.frame1.zipphone2_3;
alert(z);
});
</script>
</body>
</html>