Skip to content

Instantly share code, notes, and snippets.

@LuD1161
Created February 29, 2020 06:33
Show Gist options
  • Save LuD1161/eb41453e6d85f19c4d681bfadec69c38 to your computer and use it in GitHub Desktop.
Save LuD1161/eb41453e6d85f19c4d681bfadec69c38 to your computer and use it in GitHub Desktop.
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