People I have an html with an iframe inside where jquery and a webservice charge a voucher in pdf format, the problem is that the first proof that I want to open does well, while the following continue showing the first. I guess it's because the page in question has been cached. Any other suggestions but?
Function js that calls the webservice
function DescargarLiq() {
var url = "../paginas/ws.asmx/DescargarLiquidacion";
var archiv = window;
archiv.open("../paginas/Liquidacion.html", "PDF");
archiv.Ruta = url;
}
The WebService function loads an image stored in the project and through itextsharp completes it with the transaction data
Script within the Liquidation page.html
$(document).ready(function () {
var Ruta = window.opener.Ruta;
crarPDF();
function crarPDF() {
$('#iframepdf').attr('src', Ruta);
}
});