I have written this code to load .epub file url, but its now working. Is any error in this code.
Please help
$(document).ready(function () {
var xhr = new XMLHttpRequest();
var src = 'Epubfiles/childrens-literature-20130206.epub';
xhr.open('GET', src, true);
xhr.setRequestHeader('Content-Type', 'epub+zip');
var bb = new (window.BlobBuilder || window.WebKitBlobBuilder)();
bb.append(xhr.responseText);
var blob = bb.getBlob("application/epub+zip");
var saveas = document.createElement("iframe");
saveas.src = window.webkitURL.createObjectURL(blob);
document.body.appendChild(saveas);
// i have tried this code to
// new Epub(blob, createReader);
});
I don't even know much more of .epub structure and the content type.
I have written this code to load .epub file url, but its now working. Is any error in this code.
Please help
I don't even know much more of .epub structure and the content type.