Closed sangari closed 12 years ago
Check the readme, there are a few suggestions there in the section " A note on XMLHttpRequest".
i have seen the section A note on XMLHttpRequest and used the base64.js but it is not working.can u pls provide me some examples.
hai, please provide me some suggestions i have used the base64.js but it is not working
hai, i am using the following code but it does not goes beyond step3.pls help me by providing some suggestions.
$(document).ready(function(){ $.ajax({ url: "alice.epub", complete: function(response, status, request) { var the_zip = new JSUnzip(response.responseText); $('#something').html('finished with ' + status); console.log("is it zip?" + the_zip.isZipFile()); var epub = new JSEpub(response.responseText); alert(epub); epub.processInSteps(function (step, extras) { var msg = ''; console.log(step); if (step === 1) { msg = "Unzipping";
} else if (step === 2) {
msg = "Uncompressing " + extras;
} else if (step === 3) { msg = "Reading OPS"; } else if (step === 4) { msg = "Post processing"; alert(msg); } else if (step === 5) { msg = "Finishing"; alert('done!'); } else { msg = "Error!"; } $('#something').html(msg);
}); } }); });