Advertisement
Guest User

ExtJS CSV Exporter + Downloadify to make IE workable

a guest
Jun 17th, 2010
1,220
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  Downloadify.create('exportButton', {
  2.   onComplete: function(){
  3.     alert('Your spreadsheet has been saved.');
  4.   },
  5.   onCancel: function(){
  6.     alert('You have cancelled the saving of this file.');
  7.   },
  8.   onError: function(){
  9.     alert('You must put something in the File Contents or there will be nothing to save!');
  10.   },
  11. filename: 'export.xls',
  12. data: Ext.ux.Exporter[config.exportFunction](this.component, null, config),
  13. swf: '/extjs/Downloadify/media/downloadify.swf',
  14.   downloadImage: '/extjs/Downloadify/images/download.png',
  15.   dataType: 'base64',
  16.   width: 100,
  17.   height: 30,
  18.   transparent: true,
  19.   append: true
  20. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement