EasyUI Forum
May 18, 2024, 12:12:29 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Create text file on local machine after getting data from TreeGrid  (Read 3021 times)
raghav94
Newbie
*
Posts: 9


View Profile
« on: July 02, 2017, 02:17:27 AM »

Hi,

I have created a TreeGrid.
I have the data from checked nodes.
I want to write this data in a text file and save it on my local machine.
Is it possible?
Logged
stworthy
Administrator
Hero Member
*****
Posts: 3581


View Profile Email
« Reply #1 on: July 02, 2017, 05:24:34 PM »

The code below shows how to provide a download link. For more information please look at the Blog or File api.
Code:
var blob = new Blob(['content'], {type: 'text/plain'});
var a = $('<a>download it</a>').appendTo('body');
a.attr('href', URL.createObjectURL(blob));
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!