We have chml file that we use internally in our company that posts pricing and other text for our staff. We store pictures on our server that are sorted under a main directory by individual folders for each customer we have. When we browse the main directory and there are over 400 folders in it, it takes awhile to scan through them to find the one you want.
I am trying to create a page that would allow you to type in the name of the folder you want and it would jump to that folder. However, the network path name is quite long, so i would like the default main directory path to be combined with the input of the folder name. I have been searching every where for ideas, but i believe i am running into a security issue, but not sure. I have pasted below what i have been trying so far:
(i believe that the last "\" listed for patha is causing me an error of an unterminated string constant)
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
function folder()
{
var path=prompt('What is the Work Order number?','00');
var patha="\\Host01\network (D)\WARRANTY PICS\PICS TAKEN 2006\"
document.frames['mycomputer'].location.src=(patha+path);
}
</script>
</HEAD>
<BODY>
<CENTER>
<input type="button" value="Find Pics" onclick="folder();">
<iframe name="mycomputer" src="\\Host01\network (D)\WARRANTY PICS\PICS TAKEN 2006\" width="90%" height="80%"></iframe>
</CENTER>
</BODY></HTML>
Bookmarks