title: Export JavaScript Array of Filtered HTML Table data to MS Excel or CSV
body: <p>I once again need to do something that sounds simple but is infact frustratingly evading me.</p>
  
  <p>On my company's intranet site we have a large table of data that has a javascript filter applied to it so that managers and other interested parties can quickly locate the rows that are relevant to them. The filter I am using can be found at <a href="http://tablefilter.free.fr/" rel="nofollow">http://tablefilter.free.fr/</a> .</p>
  
  <p>My issue arises when I need to have a button to export the filtered results to Excel so that the managers can access the data offline. There are many straight forward options for exporting the HTML table to excel but I have been unable to figure out how to get JUST the filtered results to export. <strong>(Note: This intranet site will only be accessed via IE)</strong> </p>
  
  <p>There is a function as part of the javascript table filter, GetFilteredData(), that will grab the filtered data cells and input these into an array, i think called filteredData[]. This array is formated as such: [rowindex,[value1,value2,value3...]].</p>
  
  <p>So how do I get this array into an Excel or csv file? Again, this will be accessed only by IE so activeX objects and controls are acceptable.</p>
  
  <p>Also I should probably note that I cannot use server-side technologies so please limit your responses to the confines of HTML, javascript and activeX. Thanks!</p>