Skip to content

Instantly share code, notes, and snippets.

@LuD1161

LuD1161/downloadPdf.js Secret

Created Feb 29, 2020
Embed
What would you like to do?
downloadPdf function
function downloadPdf(tid) {
if (document.getElementById("hdnBookingId") != null && document.getElementById("hdnBookingId").value != "")
tid = document.getElementById("hdnBookingId").value;
if (tid != null && tid != "" && tid != undefined)
window.open("http://api.whereIDORsLive.com/XYZService/EticketPdf/" + tid + ".pdf", '_blank');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment