Oh come on guys... if you collect the data and simply separate the fields by a tab, then ajax it back to a simplistic cgi, it could save the file for a short period of time, and the user could download the tab separated data right into excel.
But the server side solutions might be more flexible... and my idea would not save bandwidth. You are better off storing the data in a data file in the first place and using ajax to load it into the table and use the same file to download right to excel... it would be in the cache, so it will save bandwidth (and use less than all those table,tr,td,th tags) On 2/19/07, Alexandre Plennevaux <[EMAIL PROTECTED]> wrote: > Basically, it's no, not possible. > > More info here: http://www.thescripts.com/forum/thread93938.html > > > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf Of ronaldo > Sent: mardi 20 février 2007 1:11 > To: [email protected] > Subject: Re: [jQuery] tables - is this possible ? > > > Apologies for not being clearer. This is the situation: > I have a table populated by a php/mysql script. I've created an excel export > option which changes the header to ms-excel and refreshes the current page > by making another call to the mysql db to fetch the data. > So I thought, the table data is already embedded in the current html page; > why make another call to the mysql db to fetch the same data again? is not > possible to use javascript to scan the current html page for <table> and > </table> and create an excel file on the fly therefore saving bandwith ? > > let me know your thoughts > > T > > > DavidIcreate wrote: > > > > ronaldo schreef: > >> Hi all, > >> > >> I have pretty basic js & jquery skills so need some input on whether > >> this is > >> feasible: > >> With some code, would i be able to scan the html page for a > >> <table></table> tag; and create an excel file based on the table data > >> ? > >> > >> if so, whats the correct syntax to loop through <td>? > >> > >> The main advantage for this would be speed and bandwith, as it'll > >> save me making a call to the database. > >> > >> Thanks > >> > >> R > >> > >> > >> > > The none jquery question would be: isn't it possible to fetch your > > data to a variable or an object and output that as html and make an > > excel file? this will not fatten your javascript code which needs to > > be downloaded too. > > > > -- > > David Duymelinck > > ________________ > > [EMAIL PROTECTED] > > > > > > _______________________________________________ > > jQuery mailing list > > [email protected] > > http://jquery.com/discuss/ > > > > > > -- > View this message in context: > http://www.nabble.com/tables---is-this-possible---tf3252465.html#a9052307 > Sent from the JQuery mailing list archive at Nabble.com. > > > _______________________________________________ > jQuery mailing list > [email protected] > http://jquery.com/discuss/ > > -- > Ce message Envoi est certifié sans virus connu. > Analyse effectuée par AVG. > Version: 7.5.441 / Base de données virus: 268.18.2/692 - Date: 18/02/2007 > 16:35 > > > > _______________________________________________ > jQuery mailing list > [email protected] > http://jquery.com/discuss/ > -- Ⓙⓐⓚⓔ - יעקב ʝǡǩȩ ᎫᎪᏦᎬ _______________________________________________ jQuery mailing list [email protected] http://jquery.com/discuss/
