How can JavaScript save to a local file?
08:45 17 Jun 2012

There's already a solution for writing file JSON online but I want to save json file locally. I've tried to use this example http://jsfiddle.net/RZBbY/10/ It creates a link to download the file, using this call a.attr('href', 'data:application/x-json;base64,' + btoa(t.val())).show(); Is there a way to save the file locally instead of providing a downloadable link? There are other types of conversion beyond data:application/x-json;base64?

Here's my code:


 
    
    jQuery UI Sortable - Default functionality

    
    
    
    
    
    
        
            
    
    



    


Scarica Dati
javascript jquery json jsonp