Änderungen Kommunikation implementiert zwischen iFrame und Fenstern.
This commit is contained in:
@@ -283,10 +283,6 @@
|
|||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
window.onmessage = function (event) {
|
alert(window.frame1.zipphone1_1)
|
||||||
if (event.data == 'reply') {
|
|
||||||
console('Reply received!');
|
|
||||||
}
|
|
||||||
};
|
|
||||||
</script>
|
</script>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
@@ -413,7 +413,6 @@ Partial Class Kundenbereich_Default
|
|||||||
txt_KdNrAuftrag.Text = ""
|
txt_KdNrAuftrag.Text = ""
|
||||||
txt_LKWNr.Text = ""
|
txt_LKWNr.Text = ""
|
||||||
|
|
||||||
|
|
||||||
Dim erster = New Date(Now().Year, Now().Month, 1)
|
Dim erster = New Date(Now().Year, Now().Month, 1)
|
||||||
pickdate1.Text = erster.Day.ToString + "." + erster.Month.ToString + "." + erster.Year.ToString
|
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
|
pickdate2.Text = Date.Parse(erster.Day.ToString + "." + Now().Month.ToString + "." + Now().Year.ToString).ToString
|
||||||
|
|||||||
@@ -145,18 +145,28 @@
|
|||||||
<script>
|
<script>
|
||||||
function bust1() {
|
function bust1() {
|
||||||
if (top != self) {
|
if (top != self) {
|
||||||
window.top.postMessage(getElementById("#CustomerID").val(),'*')
|
var zipphone1_1 = getElementById("#CustomerID").val();
|
||||||
window.top.postMessage(getElementById("#UserName").val(), '*')
|
var zipphone1_2 = getElementById("#UserName").val();
|
||||||
window.top.postMessage(getElementById("#Password").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(), '*')*/
|
||||||
|
|
||||||
top.location.replace('../Customers/Welcome.aspx');
|
top.location.replace('../Customers/Welcome.aspx');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function bust2() {
|
function bust2() {
|
||||||
if (top != self) {
|
if (top != self) {
|
||||||
window.top.postMessage(getElementById("#CustomerID").val(), '*')
|
var zipphone2_1 = getElementById("#CustomerID").val();
|
||||||
window.top.postMessage(getElementById("#UserName").val(), '*')
|
var zipphone2_2 = getElementById("#UserName").val();
|
||||||
window.top.postMessage(getElementById("#Password").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');
|
top.location.replace('../admin/admin.aspx');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -550,10 +550,10 @@
|
|||||||
</a> -->
|
</a> -->
|
||||||
<asp:LoginView ID="LoginView1" runat="server" ClientIDMode="AutoID">
|
<asp:LoginView ID="LoginView1" runat="server" ClientIDMode="AutoID">
|
||||||
<AnonymousTemplate>
|
<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>
|
</AnonymousTemplate>
|
||||||
<LoggedInTemplate>
|
<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>
|
</LoggedInTemplate>
|
||||||
</asp:LoginView>
|
</asp:LoginView>
|
||||||
<div style="height:10px"></div>
|
<div style="height:10px"></div>
|
||||||
@@ -618,14 +618,22 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
window.onmessage = function (event) {
|
$(document.ready(function () {
|
||||||
if (event.data == '717858') {
|
var x = window.frame1.zipphone1_1;
|
||||||
alert("")
|
alert(x);
|
||||||
console('KDN received!');
|
var y = window.frame1.zipphone1_2;
|
||||||
return '717858';
|
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>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
Reference in New Issue
Block a user