PreethaMIS
MIS
Hi,
This page is built with Javascript as the server side scripting language. I inherited this and need to see how to remove the %20 in the link when I try to see in the status bar of the machine.
Not too sure if this is the right forum to ask server side Javascript questions.
In the page in the browser, I see folder contents which means, it is a display of all the Excel files in a particular folder of the drive name. So if I see in the folder path:
DeptWeb\QA\Docs\IQC
I see 6 Excel files which can written onto the browser using the "Scripting.FileSystemObject" and its methods.
When I point my cursor on the Excel file link "CMM for 1188 front gage RR", it shows me as:
file://servername/Deptweb/QA/docs/IQC/CMM%20for%201188%20front%20gage%20RR.xls
So obviously I get an error saying that "file://servername/Deptweb/QA/docs/IQC/CMM%20for%201188%20front%20gage%20RR.xls" is not found. Make sure the path or Internet address is correct.
How do I strip the %20 from the above link before I open the xls file in the browser?
Thanks.
The following writes the different files in the folder:
This page is built with Javascript as the server side scripting language. I inherited this and need to see how to remove the %20 in the link when I try to see in the status bar of the machine.
Not too sure if this is the right forum to ask server side Javascript questions.
In the page in the browser, I see folder contents which means, it is a display of all the Excel files in a particular folder of the drive name. So if I see in the folder path:
DeptWeb\QA\Docs\IQC
I see 6 Excel files which can written onto the browser using the "Scripting.FileSystemObject" and its methods.
When I point my cursor on the Excel file link "CMM for 1188 front gage RR", it shows me as:
file://servername/Deptweb/QA/docs/IQC/CMM%20for%201188%20front%20gage%20RR.xls
So obviously I get an error saying that "file://servername/Deptweb/QA/docs/IQC/CMM%20for%201188%20front%20gage%20RR.xls" is not found. Make sure the path or Internet address is correct.
How do I strip the %20 from the above link before I open the xls file in the browser?
Thanks.
The following writes the different files in the folder:
Code:
<li class="<% Response.write(fileExt); %>">123<a href="<% Response.write(fileLink); %>" title="<% Response.write(ftype); %>" target="_blank"><% Response.write(fileDisplay); %></a></li>
Code:
var fileLink = "file:///"+folderspec+"/"+filePath[filePathLen-1];