the format of the html can be a regular old <TBALE> tag. To have it point
to Excel you need to change the headers. In php:
<?php
header("Content-type: application/vnd.ms-excel; name='excel'");
header("Content-Disposition: filename=export.xls");
header("Pragma: no-cache");
header("Expires: 0");
Glen
On 8/8/07, Mike Miller <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> Am wondering if this is possible with ajax and jquery.
>
> I have a table that contains data I would like to export to excel. Is
> it possible using the .ajax() method to post the table data (e.g. $
> ("#tableid")) to the php page on the backend and have it return an
> excel file?
>
> I plan on using the pear module Spreadsheet_Excel_Writer to generate
> the xls file. Any ideas on whether or not this is possible.
>
> M
>
>