Just like the title says, I need to save json in memory data. I want to be able to trigger this from onlick event on some dom object.
I want to save the data on the users computer as if they were downloading this file. Saving as text is fine.
There is no server to talk to.
UPDATE:
http://jsfiddle.net/adouga/GpcAt/1/
I am getting
TypeError: cyclic object value
var json1 = JSON.stringify(mydata);
UPDATE: The cyclic error was happening because fullcalendar objects have it's own custom properties and nested objects. So I iterate over the returned object array and copy objects only with my properties to another array which can be stringified just fine
http://jsfiddle.net/adouga/GpcAt/2/
I think this might do the trick of copying to clipboard.