Skip to content

Instantly share code, notes, and snippets.

@LuD1161
Created February 29, 2020 06:33
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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