Saturday, 20 May 2017

Write excel file and Download file from server using jquery

//

<html>
<head>
    <script>

<script src="//code.jquery.com/jquery-2.1.1.min.js"></script>
</head>
<body>
    <a id="lnk" href="data:text/csv;charset=utf-8, asdkjflks" download="FilePath\Exported%20Excel.xls">
        write and download file</a>
    <br>
 
    <script>
        try {
            $('#lnk').on('click', function () {
                window.runnerWindow.proxyConsole.log('The link was clicked')
            });
        }
        catch (error)
        { throw error; }
                //# sourceURL=yereg.js
    </script>
</body>

</html>

No comments:

Post a Comment

How to highlight selected text in notepad++

  –> To highlight a block of code in Notepad++, please do the following steps step-1  :- Select the required text. step-2  :- Right click...