Hello...
I'm new to this whole CGI thing, so bare with me.
This is somewhat of a crude example of how this could be done... I'm not the least bit any kind of expert at this.
In your fileman.cgi file find the javascript area under your sub main area:
(i.e...
# Javascript form validation.
my $javascript = qq~
<script language="Javascript">
.
.
.
function serverFileName() {
var fileName = window.document.Upload.data.value.toLowerCase();
window.document.Upload.fn.value = fileName.substring(fileName.lastIndexOf("\\\\") + 1,fileName.length);
}
// -->
</script>
and then add this to the end of the javascript area just before the // --></script>
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0,width=460,height=60,left = 90,top = 210');");
}
Now... find this section under the sub list_files:
onFocus="select()" onBlur="validateFileEntry(this.value, this)">
<input type="submit" value="Upload"></font>
Make it look something like this:
onFocus="select()" onBlur="validateFileEntry(this.value, this)">
<input type="submit" value="Upload" onClick="javascript:popUp('uploading.html')"></font>
Now create a HTML file similar to this:
<HTML>
<HEAD>
<TITLE>Uploading...</TITLE>
</HEAD>
<BODY>
<P><center>Uploading in Progress...</center></p>
</BODY>
</HTML>
and place the HTML file in the same directory as fileman.cgi.
Of course you can tweek the javascripting and the HTML to your tastes. Hope that this was some sort of help. Well... at least a start in the right direction!
Jeremy Kerr
http://www.indianawebsites.com