Update 20260529
This commit is contained in:
@@ -311,7 +311,7 @@
|
||||
function generateFromJson() {
|
||||
|
||||
var jsonText = editor.getValue();
|
||||
alert("Hallo");
|
||||
|
||||
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
@@ -323,15 +323,24 @@
|
||||
"Authorization": "Bearer " + "pZkuG6l6ORCEckqQimPK58PO1A9EnkMtL5oCgRX9WiWnD4xeH7ikGzhWnTBy/vk8J4Iiz8gCSx9uFHA4+DvITG0roO97sk82d/0BCjVlwLWINpXlJfGYEF3X96AdoCQvb3ruwv/tVqEHsSU5aNfyxBAe+EhLTHQ8t7ysgJZWh98="
|
||||
},
|
||||
success: function (response) {
|
||||
var pdfWindow = window.open("");
|
||||
pdfWindow.document.write("<iframe width='100%' height='100%' src='data:application/pdf;base64," + response.file + "'></iframe>");
|
||||
//alert("Server Response: " + response.file);
|
||||
|
||||
PageMethods.SaveTempFile(
|
||||
response.file,
|
||||
function (response) {
|
||||
window.open("/PDFViewer.aspx", "_blank").focus();
|
||||
var a = 1;
|
||||
},
|
||||
function (err) {
|
||||
alert(err.get_message());
|
||||
}
|
||||
);
|
||||
},
|
||||
|
||||
error: function (err) {
|
||||
alert("Error: " + err.responseText);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
function showDoc(tableKey, id) {
|
||||
@@ -339,15 +348,20 @@
|
||||
tableKey,
|
||||
id,
|
||||
function (result) {
|
||||
var pdfWindow = window.open("");
|
||||
pdfWindow.document.write("<iframe width='100%' height='100%' src='data:application/pdf;base64," + result + "'></iframe>");
|
||||
PageMethods.SaveTempFile(
|
||||
result,
|
||||
function (result) {
|
||||
window.open("/PDFViewer.aspx", "_blank").focus();
|
||||
},
|
||||
function (err) {
|
||||
alert(err.get_message());
|
||||
}
|
||||
);
|
||||
},
|
||||
function (err) {
|
||||
|
||||
alert(err.get_message())
|
||||
alert(err.get_message());
|
||||
}
|
||||
);
|
||||
|
||||
}
|
||||
function loadJson(tableKey, id) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user