Jump to content
New Reality: Ads For Members ×

Jquery Export to Excel


FooKelvin

Recommended Posts

Quick glance at the doc link you provided, I would say you just need to set the name config property to document.title

 

Example using step #3 in doc:

 

$("button").click(function(){
  $("#table2excel").table2excel({
    // exclude CSS class
    exclude: ".noExl",
    name: document.title
  });
});

Quick glance at the doc link you provided, I would say you just need to set the name config property to document.title

 

Example using step #3 in doc:

 

$("button").click(function(){
  $("#table2excel").table2excel({
    // exclude CSS class
    exclude: ".noExl",
    name: document.title
  });
});

Hi Josh,

 

The name: is for excel sheet name. I would like to change the file name, for example myname.xls

 

Thank You

Hi Josh,

 

The name: is for excel sheet name. I would like to change the file name, for example myname.xls

 

Thank You

 

interesting, since the example on the page you linked seems to highly infer that the 'name' is the document name

 

$("button").click(function(){
  $("#table2excel").table2excel({
    // exclude CSS class
    exclude: ".noExl",
    name: "Excel Document Name"
  });
});
 

 

Try using  filename:

$("button").click(function(){
  $("#table2excel").table2excel({
    // exclude CSS class
    exclude: ".noExl",
    name: document.title,
    filename: "myFileName"
  });
});

 

Still the same problem, the file name auto change to download.xls.

 

Help~~~

Archived

This topic is now archived and is closed to further replies.



×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.