Änderungen JSON Serializer nach Import in Funktion
This commit is contained in:
@@ -311,6 +311,7 @@
|
|||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function doPostBack(id) {
|
function doPostBack(id) {
|
||||||
|
|
||||||
let Speditionslabel = document.getElementById('<%=lbl_sped_Placeholder.ClientID%>');
|
let Speditionslabel = document.getElementById('<%=lbl_sped_Placeholder.ClientID%>');
|
||||||
let natplaceholder = document.getElementById('<%=lbl_Placeholder.ClientID%>');
|
let natplaceholder = document.getElementById('<%=lbl_Placeholder.ClientID%>');
|
||||||
alert(id)
|
alert(id)
|
||||||
@@ -333,13 +334,17 @@
|
|||||||
//addNewRow(SDL,Bez,Datguenstig,KartNr)
|
//addNewRow(SDL,Bez,Datguenstig,KartNr)
|
||||||
// Pagemethods.filltable2(<%' =tbl_mainpage %> , SDL, Bez, Datguenstig, KartNr)
|
// Pagemethods.filltable2(<%' =tbl_mainpage %> , SDL, Bez, Datguenstig, KartNr)
|
||||||
//}
|
//}
|
||||||
|
var data = {
|
||||||
|
"Kennz": id.split(',')[0],
|
||||||
|
"NatLKW": id.split(',')[1]
|
||||||
|
};
|
||||||
|
data = JSON.stringify(data);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "LKWs.aspx/filltable2",
|
url: "LKWs.aspx/filltable2",
|
||||||
contentType: "application/json; charset=utf-8",
|
contentType: "application/json; charset=utf-8",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
data: '{"' + id.split(',')[0] + '"}',
|
data: data,
|
||||||
success: function (result) {
|
success: function (result) {
|
||||||
OnSuccess(result.d);
|
OnSuccess(result.d);
|
||||||
},
|
},
|
||||||
@@ -387,13 +392,17 @@
|
|||||||
//addNewRow(SDL,Bez,Datguenstig,KartNr)
|
//addNewRow(SDL,Bez,Datguenstig,KartNr)
|
||||||
// Pagemethods.filltable2(<%' =tbl_mainpage_M%> , SDL, Bez, Datguenstig, KartNr)
|
// Pagemethods.filltable2(<%' =tbl_mainpage_M%> , SDL, Bez, Datguenstig, KartNr)
|
||||||
//}
|
//}
|
||||||
|
var data = {
|
||||||
|
"Kennz": id.split(',')[0],
|
||||||
|
"NatLKW": id.split(',')[1]
|
||||||
|
};
|
||||||
|
data = JSON.stringify(data);
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: "POST",
|
type: "POST",
|
||||||
url: "LKWs.aspx/filltable2",
|
url: "LKWs.aspx/filltable2",
|
||||||
contentType: "application/json; charset=utf-8",
|
contentType: "application/json; charset=utf-8",
|
||||||
dataType: "json",
|
dataType: "json",
|
||||||
data: '{' + id.split(',')[0] + '}',
|
data: data,
|
||||||
success: function (result) {
|
success: function (result) {
|
||||||
OnSuccess(result.d);
|
OnSuccess(result.d);
|
||||||
},
|
},
|
||||||
@@ -404,7 +413,7 @@
|
|||||||
function OnSuccess(success) {
|
function OnSuccess(success) {
|
||||||
alert('horray! 200 status code!');
|
alert('horray! 200 status code!');
|
||||||
//alert(success)
|
//alert(success)
|
||||||
table_M.innerHTML = success;
|
table.innerHTML = success;
|
||||||
}
|
}
|
||||||
function OnFailure(error) {
|
function OnFailure(error) {
|
||||||
alert(error);
|
alert(error);
|
||||||
@@ -416,6 +425,7 @@
|
|||||||
alert('500 status code! server error');
|
alert('500 status code! server error');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
//filltable2(id.split(',')[0])
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
</asp:Content>
|
</asp:Content>
|
||||||
Reference in New Issue
Block a user