pr.nimbalkar Posted November 19, 2007 Share Posted November 19, 2007 Hi . I am browse the folder using following code snippet function fnShellBrowseForFolderJ(val) { var str=val var objShell = new ActiveXObject("Shell.Application"); var objFolder = new Object; var objParentFolder; var objFolderItem; var strFolderName; objFolder = objShell.BrowseForFolder(0, "Test", 0, "C:\\"); if (objFolder != null) { // Add code here. objParentFolder = objFolder.ParentFolder; strFolderName = objFolder.Title; objFolderItem = objParentFolder.ParseName(strFolderName); if (val=="input") { var txt=document.getElementById('<%=txtinput.clientId%>') txt.value = objFolderItem.Path; } if (val=="output") { var txt=document.getElementById('<%=txtOutput.clientId%>') txt.value = objFolderItem.Path; txt.value = objFolderItem.Path; } } } But , i throws an javascript error "Permission denied". How do i solve this problem?Thanks,Prashant N Link to comment Share on other sites More sharing options...
justsomeguy Posted November 19, 2007 Share Posted November 19, 2007 I don't think there's a way to give IE permission to allow unsigned ActiveX to read your local filesystem. Even if I add the site to the trusted sites zone it still won't allow it. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.