{"action":"created","issue":{"url":"https://api.github.com/repos/kayalshri/tableExport.jquery.plugin/issues/13","repository_url":"https://api.github.com/repos/kayalshri/tableExport.jquery.plugin","labels_url":"https://api.github.com/repos/kayalshri/tableExport.jquery.plugin/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/kayalshri/tableExport.jquery.plugin/issues/13/comments","events_url":"https://api.github.com/repos/kayalshri/tableExport.jquery.plugin/issues/13/events","html_url":"https://github.com/kayalshri/tableExport.jquery.plugin/issues/13","id":45068816,"number":13,"title":"Need option for fileName to be saved","user":{"login":"Nivethar92","id":9046582,"avatar_url":"https://avatars.githubusercontent.com/u/9046582?v=3","gravatar_id":"","url":"https://api.github.com/users/Nivethar92","html_url":"https://github.com/Nivethar92","followers_url":"https://api.github.com/users/Nivethar92/followers","following_url":"https://api.github.com/users/Nivethar92/following{/other_user}","gists_url":"https://api.github.com/users/Nivethar92/gists{/gist_id}","starred_url":"https://api.github.com/users/Nivethar92/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nivethar92/subscriptions","organizations_url":"https://api.github.com/users/Nivethar92/orgs","repos_url":"https://api.github.com/users/Nivethar92/repos","events_url":"https://api.github.com/users/Nivethar92/events{/privacy}","received_events_url":"https://api.github.com/users/Nivethar92/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2014-10-07T05:23:52Z","updated_at":"2016-12-29T13:15:42Z","closed_at":null,"body":"When i download the file the file name is in encoded form.  I dont want it to be encoded.  I need to enter the filename manually or during intialisation\n"},"comment":{"url":"https://api.github.com/repos/kayalshri/tableExport.jquery.plugin/issues/comments/269628768","html_url":"https://github.com/kayalshri/tableExport.jquery.plugin/issues/13#issuecomment-269628768","issue_url":"https://api.github.com/repos/kayalshri/tableExport.jquery.plugin/issues/13","id":269628768,"user":{"login":"MarappPrashanth","id":17057880,"avatar_url":"https://avatars.githubusercontent.com/u/17057880?v=3","gravatar_id":"","url":"https://api.github.com/users/MarappPrashanth","html_url":"https://github.com/MarappPrashanth","followers_url":"https://api.github.com/users/MarappPrashanth/followers","following_url":"https://api.github.com/users/MarappPrashanth/following{/other_user}","gists_url":"https://api.github.com/users/MarappPrashanth/gists{/gist_id}","starred_url":"https://api.github.com/users/MarappPrashanth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MarappPrashanth/subscriptions","organizations_url":"https://api.github.com/users/MarappPrashanth/orgs","repos_url":"https://api.github.com/users/MarappPrashanth/repos","events_url":"https://api.github.com/users/MarappPrashanth/events{/privacy}","received_events_url":"https://api.github.com/users/MarappPrashanth/received_events","type":"User","site_admin":false},"created_at":"2016-12-29T13:15:42Z","updated_at":"2016-12-29T13:15:42Z","body":"Please help me i could not download excel sheet in particular file name\r\n\r\nfunction fillHidTable(){\r\n    var htqf; //-- hidden field\r\n    var rf; //-- retrieved field\r\n    for ( var i = 0; i < counter+1; i++ ) {\r\n        rf = \"htqf\"+i;\r\n       rf2 = \"Testset\"+i;\r\n\t   rf3 = \"NoT\"+i;\r\n\t   rf4=\"Sysid\"+i;\r\n        document.getElementById(rf).innerHTML = document.getElementById(\"QCALC\"+i).value;\r\n\t\tdocument.getElementById(rf3).innerHTML =x[i].getElementsByTagName(\"Number_Of_TestCases\")[0].childNodes[0].nodeValue\r\n\t\tdocument.getElementById(rf2).innerHTML =x[i].getElementsByTagName(\"TestCaseName\")[0].childNodes[0].nodeValue\r\n\t\tdocument.getElementById(rf4).innerHTML = document.getElementById(\"systemid\"+i).value;\r\n\t\t}\r\n    tableToExcel('hidTable', 'Automation Plan','myfile.xls');\r\n}\r\nvar tableToExcel = (function() {\r\n   var uri = 'data:application/vnd.ms-excel;base64,'\r\n        , template = '<html xmlns:o=\"urn:schemas-microsoft-com:office:office\" xmlns:x=\"urn:schemas-microsoft-com:office:excel\" xmlns=\"http://www.w3.org/TR/REC-html40\"><head><!--[if gte mso 9]><xml><x:ExcelWorkbook><x:ExcelWorksheets><x:ExcelWorksheet><x:Name>{worksheet}</x:Name><x:WorksheetOptions><x:DisplayGridlines/></x:WorksheetOptions></x:ExcelWorksheet></x:ExcelWorksheets></x:ExcelWorkbook></xml><![endif]--></head><body><table>{table}</table></body></html>'\r\n        , base64 = function (s) { return window.btoa(unescape(encodeURIComponent(s))) }\r\n        , format = function (s, c) { return s.replace(/{(\\w+)}/g, function (m, p) { return c[p]; }) }\r\n       \r\n           return function(table, name, filename) {\r\n        if (!table.nodeType) table = document.getElementById(table)\r\n        var ctx = {worksheet: name || 'Worksheet', table: table.innerHTML}\r\n\t\tdocument.getElementById(\"hidTable\").href = uri + base64(format(template, ctx));\r\n            document.getElementById(\"hidTable\").download = filename;\r\n\t\t\r\n          \r\n    }\r\n})()\r\n\r\n <input  type=\"button\" onclick=\"fillHidTable();\" value=\"Export Data to Excel\">\r\n\t\r\n\t  \r\n<div id=\"hidTable\" style=\"display: none\">\r\n    <table id=\"testTable\">"}}
{"actor":{"display_login":"MarappPrashanth"}}