Check FIle Exist in Javascript
-
Hey experts I am facing a problem from last couple of week,I am not finding any solution for that. I need to check some file in local machine like- "c:\test.txt" through java script when page is getting load,so i can show/Hide a div accordingly. although i tried var fso = new ActiveXObject("Scripting.FileSystemObject"); // if condition to check whether the specified file exists or not. if(fso.FileExists("C:\\test.txt")) but its work in IE only after changing some setting in internet option, which is not secure. Can anybody give right solution for all browser It would be great Thanks in Adv.. Shafiq
-
Hey experts I am facing a problem from last couple of week,I am not finding any solution for that. I need to check some file in local machine like- "c:\test.txt" through java script when page is getting load,so i can show/Hide a div accordingly. although i tried var fso = new ActiveXObject("Scripting.FileSystemObject"); // if condition to check whether the specified file exists or not. if(fso.FileExists("C:\\test.txt")) but its work in IE only after changing some setting in internet option, which is not secure. Can anybody give right solution for all browser It would be great Thanks in Adv.. Shafiq
Yes, you did ask this a while ago. And you were given the answer then.