<script src="js/jquery.fileDownload.js"></script> <script type="text/javascript"> $(document).on("click", "a.myClass1", function () { $.fileDownload($(this).prop('href'), { preparingMessageHtml: "We are preparing your report, please wait...", failMessageHtml: "There was a problem generating your report, please try again." }); return false; //this is critical }); </script> </head> <body> <a class="myClass1" href="http://myServer:6024/sites/abc/TechDocs/CSE/111.zip">Download Here</a>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)