The following code will display the contents of a local folder in a web browser, however, it defaults to icons regardless of the default XP folder settings. I want to view the local folder as either list or details in the browser by default. Or alternatively as an ftp style list.
Opening the page in IE displays icons in the iframe, but opening it in firefox displays an ftp style list. I want to use IE but control the folder view.
Any ideas how I can do this please?
Code:
<html>
<a href="file:///C:/iframetest/"
onclick="var f=document.getElementById('anotherFrameID');
try { f.src=this.href; f.style.display='block'; }
catch(e) { f.style.display='none'; alert(e.description?e.description:e.toString()); }
return false;">view local filesystem...</a>
<iframe src="" id="anotherFrameID"
style="display:none;background:#fff;width:100%;height:500px"></iframe>
</html>
Many thanks
Opening the page in IE displays icons in the iframe, but opening it in firefox displays an ftp style list. I want to use IE but control the folder view.
Any ideas how I can do this please?
Code:
<html>
<a href="file:///C:/iframetest/"
onclick="var f=document.getElementById('anotherFrameID');
try { f.src=this.href; f.style.display='block'; }
catch(e) { f.style.display='none'; alert(e.description?e.description:e.toString()); }
return false;">view local filesystem...</a>
<iframe src="" id="anotherFrameID"
style="display:none;background:#fff;width:100%;height:500px"></iframe>
</html>
Many thanks