<!-- saved from url=(0014)about:internet -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Simple upload example</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
Sample: <b>simpleupload.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/>
It is a simple example of uploading with the help of JavaPowUpload. All files sent at single request.
<br/>Themes support is disabled at this sample to make load process faster. To look great JavaPowUpload interface open any other sample (themes is enabled).
<br/>
<applet
code="com.elementit.JavaPowUpload.Manager"
archive="lib/JavaPowUpload.jar,
lib/commons-logging-1.1.jar,
lib/commons-httpclient-3.1-rc1.jar,
lib/commons-codec-1.3.jar"
width="400"
height="250"
name="JavaPowUpload"
id="JavaPowUpload"
mayscript="true"
alt="JavaPowUpload by www.element-it.com"
VIEWASTEXT>
<!-- Java Plug-In Options -->
< color= "#0000FF">param name="Common.SerialNumber" value="">
< color= "#0000FF">param name="progressbar" value="true">
< color= "#0000FF">param name="boxmessage" value="Loading JavaPowUpload Applet ...">
<!--Enable upload mode -->
< color= "#0000FF">param name="Common.UploadMode" value="true">
< color= "#0000FF">param name="Common.UseLiveConnect" value="true">
<!--Set url to file processing script -->
< color= "#0000FF">param name="Upload.UploadUrl" value="FileProcessingScripts/PHP/uploadfiles.php">
<!-- This text will be shown if applet not working or Java not installed-->
<span style="border:1px solid #FF0000;display:block;padding:5px;margin-top:10px;margin-bottom:10px;text-align:left; background: #FDF2F2;color:#000;">You should <b>enable applets</b> running at browser and to have the <b>Java</b> (JRE) version >= 1.5.<br />If applet is not displaying properly, please check <a target="_blank" href="http://java.com/en/download/help/testvm.xml" title="Check Java applets">additional configurations</a></span>
</applet>
<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/>
<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>