mirror of
https://github.com/purplecabbage/phonegap-plugins.git
synced 2026-01-13 16:38:08 -05:00
41 lines
778 B
HTML
41 lines
778 B
HTML
<!--
|
|
Author: Vishal Rajpal
|
|
Filename: index.html
|
|
Created Date: 21-02-2012
|
|
Modified Date: 04-04-2012
|
|
-->
|
|
|
|
<html>
|
|
<head>
|
|
<script type="text/javascript" src="phonegap-1.3.0.js"></script>
|
|
<script type="text/javascript" src="ZipPlugin.js"></script>
|
|
|
|
<script type="text/javascript">
|
|
|
|
document.addEventListener("deviceready",onDeviceReady);
|
|
|
|
function onDeviceReady()
|
|
{
|
|
}
|
|
|
|
function extractFile(fileName)
|
|
{
|
|
var ZipClient = new ExtractZipFilePlugin();
|
|
ZipClient.extractFile('sdcard/'+fileName,win,fail,'ExtractZipFilePlugin');
|
|
}
|
|
function win(status)
|
|
{
|
|
alert('Success'+status);
|
|
}
|
|
|
|
function fail(error)
|
|
{
|
|
alert(error);
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<input type="button" value="Extract Zip File" onClick="extractFile('ZipFile/Zip/FormZip/FileName.zip');"/>
|
|
</body>
|
|
|
|
</html> |