I have a simple Perl CGI script that reads a directory, displays two file
lists filtered on extension.
The user then selects a file from either list and the script calls
another CGI script to process the file.
The CGI script is working with POST method.
I activate the request using a javascript 'onClick'.
The code for the two file lists is below.
//---------------------------------------------
function fn_go_csv(e) {
var f=e.form
if (f.csv_list.value == '') {
alert("No CSV File selected")
return
}
f.action='docsig_file.pl'
f.MODE.value='CSV'
f.FULLFILENAME.value=f.FILEDIR.value + f.csv_list.value
f.submit();
}
//---------------------------------------------
function fn_go_xls(e) {
var f=e.form
if (f.xls_list.value == '') {
alert("No XLS File selected")
return
}
f.action='docsig_file.pl'
f.MODE.value='XLS'
f.FULLFILENAME.value=f.FILEDIR.value + f.xls_list.value
f.submit();
}
//----------
The CSV option works perfectly, but the XLS option causes the IIS server
to prompt for saving 'docsig_file.pl' to disk!!!
I acn't work out why the two functions result in different behaviour from
IIS.
The scripts work fine on Apache + Xitami.
The IIS server is set-up to load and display XLS files automatically.
This is the only thing that I can think of that can be causing the
problem - but I can't work out how it knows that I'm trying to process an
Excel file - if that is the problem.
Any suggestions would be greatly appreciated.
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]