Table Generation in OnSuccess-Funktion implementiert.
This commit is contained in:
@@ -323,7 +323,7 @@
|
||||
}
|
||||
Speditionslabel.textContent = id.split(',')[0];
|
||||
natplaceholder.textContent = id.split(',')[1];
|
||||
addheader()
|
||||
|
||||
//debugger
|
||||
|
||||
//for (let i = 0; i <= 5; i++) {
|
||||
@@ -335,7 +335,7 @@
|
||||
// Pagemethods.filltable2(<%' =tbl_mainpage %> , SDL, Bez, Datguenstig, KartNr)
|
||||
//}
|
||||
var data = {
|
||||
"Kennz": id.split(',')[0],
|
||||
"Kennzeichen": id.split(',')[0],
|
||||
"NatLKW": id.split(',')[1]
|
||||
};
|
||||
data = JSON.stringify(data);
|
||||
@@ -353,9 +353,13 @@
|
||||
}
|
||||
});
|
||||
function OnSuccess(success) {
|
||||
alert('horray! 200 status code!');
|
||||
//alert(success)
|
||||
table.innerHTML = success;
|
||||
alert('horray! 200 status code!');
|
||||
addheader();
|
||||
for (var i = 0; i < success.length; i++) {
|
||||
var row = $('<tr><td>' + success[i].SDLNr + '</td><td>' + success[i].Bez + '</td><td>' + data[i].DateGueltig + '</td><td>' + data[i].KartNr + '</td></tr>');
|
||||
table.append(row);
|
||||
}
|
||||
|
||||
}
|
||||
function OnFailure(error) {
|
||||
alert(error);
|
||||
@@ -381,7 +385,7 @@
|
||||
}
|
||||
Speditionslabel.textContent = id_M.split(',')[0];
|
||||
natplaceholder.textContent = id_M.split(',')[1];
|
||||
addheader_M();
|
||||
|
||||
//debugger
|
||||
|
||||
//for (let i = 0; i <= 5; i++) {
|
||||
@@ -393,13 +397,13 @@
|
||||
// Pagemethods.filltable2(<%' =tbl_mainpage_M%> , SDL, Bez, Datguenstig, KartNr)
|
||||
//}
|
||||
var data = {
|
||||
"Kennz": id.split(',')[0],
|
||||
"NatLKW": id.split(',')[1]
|
||||
"Kennzeichen": id_M.split(',')[0],
|
||||
"NatLKW": id_M.split(',')[1]
|
||||
};
|
||||
data = JSON.stringify(data);
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "LKWs.aspx/filltable2",
|
||||
url: "LKWs.aspx/filltable2_M",
|
||||
contentType: "application/json; charset=utf-8",
|
||||
dataType: "json",
|
||||
data: data,
|
||||
@@ -411,9 +415,12 @@
|
||||
}
|
||||
});
|
||||
function OnSuccess(success) {
|
||||
alert('horray! 200 status code!');
|
||||
//alert(success)
|
||||
table.innerHTML = success;
|
||||
alert('horray! 200 status code!');
|
||||
addheader_M();
|
||||
for (var i = 0; i < success.length; i++) {
|
||||
var row = $('<tr><td>' + success[i].SDLNr + '</td><td>' + success[i].Bez + '</td><td>' + data[i].DateGueltig + '</td><td>' + data[i].KartNr + '</td></tr>');
|
||||
table_M.append(row);
|
||||
}
|
||||
}
|
||||
function OnFailure(error) {
|
||||
alert(error);
|
||||
|
||||
Reference in New Issue
Block a user