Änderungen Kommunikation implementiert zwischen iFrame und Fenstern.
This commit is contained in:
@@ -283,10 +283,6 @@
|
||||
};
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
window.onmessage = function (event) {
|
||||
if (event.data == 'reply') {
|
||||
console('Reply received!');
|
||||
}
|
||||
};
|
||||
alert(window.frame1.zipphone1_1)
|
||||
</script>
|
||||
</asp:Content>
|
||||
@@ -413,7 +413,6 @@ Partial Class Kundenbereich_Default
|
||||
txt_KdNrAuftrag.Text = ""
|
||||
txt_LKWNr.Text = ""
|
||||
|
||||
|
||||
Dim erster = New Date(Now().Year, Now().Month, 1)
|
||||
pickdate1.Text = erster.Day.ToString + "." + erster.Month.ToString + "." + erster.Year.ToString
|
||||
pickdate2.Text = Date.Parse(erster.Day.ToString + "." + Now().Month.ToString + "." + Now().Year.ToString).ToString
|
||||
|
||||
@@ -145,18 +145,28 @@
|
||||
<script>
|
||||
function bust1() {
|
||||
if (top != self) {
|
||||
window.top.postMessage(getElementById("#CustomerID").val(),'*')
|
||||
var zipphone1_1 = getElementById("#CustomerID").val();
|
||||
var zipphone1_2 = getElementById("#UserName").val();
|
||||
var zipphone1_3 = getElementById("#Password").val();
|
||||
alert("send:"+zipphone1_1)
|
||||
alert("send:"+zipphone1_2)
|
||||
alert("send:"+zipphone1_3)
|
||||
|
||||
/*window.top.postMessage(getElementById("#CustomerID").val(),'*')
|
||||
window.top.postMessage(getElementById("#UserName").val(), '*')
|
||||
window.top.postMessage(getElementById("#Password").val(), '*')
|
||||
window.top.postMessage(getElementById("#Password").val(), '*')*/
|
||||
|
||||
top.location.replace('../Customers/Welcome.aspx');
|
||||
}
|
||||
}
|
||||
function bust2() {
|
||||
if (top != self) {
|
||||
window.top.postMessage(getElementById("#CustomerID").val(), '*')
|
||||
window.top.postMessage(getElementById("#UserName").val(), '*')
|
||||
window.top.postMessage(getElementById("#Password").val(), '*')
|
||||
var zipphone2_1 = getElementById("#CustomerID").val();
|
||||
var zipphone2_2 = getElementById("#UserName").val();
|
||||
var zipphone2_3 = getElementById("#Password").val();
|
||||
alert("send:" + zipphone2_1)
|
||||
alert("send:" + zipphone2_2)
|
||||
alert("send:" + zipphone2_3)
|
||||
top.location.replace('../admin/admin.aspx');
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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>
|
||||
@@ -619,13 +619,21 @@
|
||||
}
|
||||
</script>
|
||||
<script type="text/javascript">
|
||||
window.onmessage = function (event) {
|
||||
if (event.data == '717858') {
|
||||
alert("")
|
||||
console('KDN received!');
|
||||
return '717858';
|
||||
}
|
||||
};
|
||||
$(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>
|
||||
Reference in New Issue
Block a user