I have created a javascript/HTML table. How to download this and store in excel? Any code will be of help.
This is my code for creating the table:
function populateTable(results) {
                var tableDiv = document.getElementById('aDiv');
                var config = { columns:
                                                [{key: 'FormattedID', width: 100},
                                                 {key: 'Name'},
                                                 {key: 'Type'},
                                                 {key: 'Method'},
                                                 {key: 'Risk'},
                                                 {key: 'Priority'}] };
                var table = new rally.sdk.ui.Table(config);
                table.addRows(results.testcases);
                table.display(tableDiv);
                alert (results.testcases.length);
           }
           queryConfig = {
                type : 'testcase',
                key  : 'testcases',
                fetch: 'true'
            };
Thanks
 
     
    