Good, I have the following problem with the Google Chrome browser:
When a $ .get () is executed within it, I have a function that is function(data){}
that is executed when the answer comes and within it I have these lines of code.
var url_with_name = "data:application/pdf;base64," + data;
var html = '<html>' + '<style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style>' + '<body>' + '<p></p>' + '<iframe type="application/pdf" data="'+url_with_name+'" src="' + url_with_name + '"></iframe>' + '</body></html>';
var a = window.open("data:application/pdf;base64, " + data, "Zupfnoter");
a.document.write(html);
a.document.close();
What I know, inside the function is to create an html code with body and an iframe to be able to show with the window.open in a new browser tab the data that would be in pdf format.
Now the time to try to download the same Mozilla Firefox does it successfully but Google Chrome does not do any action, what should that?
If you can help me please.