Click here to Skip to main content
15,896,111 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Java<br
<br />");
var url= $("Myfile.zip").val();



var donReading=function(zip){
    WithEntries(zip);
    
    };


var zipFile = new  ZipFile(url, doneReading);
};

function  WithEntries(zip){

$('#report').accordion('destroy');

    // clear
    $("#report").html('');
  var extractCb = function(id) {
        // this callback is invoked with the entry name, and entry text
        // in my demo, the text is just injected into an accordion panel.
        return (function(entryName, entryText){
            var content = entryText.replace(new RegExp( "\\n", "g" ), "<br/>");
            $("#"+id).html(content);
            $("#status").append("extract cb, entry(" + entryName + ")  id(" + id + ")<br/>");
            $('#report').accordion('destroy');
            $('#report').accordion({collapsible:true, active:false});
        });
    }
    
    
    
for(var i=0;i<zip.entries.length;i++)    {
var entry=zip.entries[i];
var entryinfo= "<h4><a>" + entry.name + "</a></h4>\n<div>";

    }
}




script">


What I have tried:

This code is not getting executed. I want to unzip a file without using activexobject.
What should I do?
Posted
Updated 3-Mar-16 20:03pm

1 solution

Try this : zip.js[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900