Discussions
Stay up-to-date with the latest news from NetSuite. You’ll be in the know about how to connect with peers and take your business to new heights at our virtual, in-person, on demand events, and much more.
New AI Community Guidelines. Please review and follow them to ensure AI use stays safe, accurate, and compliant.
Zip file
hi friends,
i want to create a zip file.
i wrote following code in user event but am not getting the output.
so please help me,
function userEventAfterSubmit(type){
var zip = new JSZip();
zip.file("Hello.txt", "Hello World\n");
var img = zip.folder("images");
img.file("smile.gif", imgData, {base64: true});
var content = zip.generate();
location.href="data:application/zip;base64,"+content;
}
i have added a library jszip.js
when am trying to execute it is showing an error i.e
ReferenceError: "JSZip" is not defined.:h_a_w:
0