173
rated 0 times
[
175]
[
2]
/ answers: 1 / hits: 15672
/ 12 Years ago, fri, january 4, 2013, 12:00:00
Using ajax I am getting the response as a PDF base64 data. Here in this example I am showing it in a new window, instead of that I want to show the PDF in a modal popup. Is there any way to do that?
$.ajax({
type : POST,
url : getPrintablePDF,
dataType : json,
contentType : 'application/json; charset=utf-8',
data : JSON.stringify(params),
success : function(data) {
//console.log(data);
var myResponse = eval(data);
window.open('data:application/pdf;base64,' + myResponse.base64EncodedResponse);
}
});
More From » html