It appears you have not yet registered with DEVPPL. To register please click here... (it's fast, easy and free!)

Forum

Log In Sponsors
Board index Programming JavaScript Forum

Browsing Folders

Browsing Folders

Postby paradise_wolf on Thu Mar 15, 2007 8:32 pm

Why this javascript code does not work ?

~~~~~~~~~~~~~~~~~~~~~~~~~~

<html>
<head>

<title>Untitled Page</title>

<script language=javascript>

<!--

function GetDownloadPath()
{
var frm = document.forms[0];
var Shell = new ActiveXObject("Shell.Application");
var Folder = new Object;

Folder = Shell.BrowseForFolder(0, "Choose a download folder", 0);

var FolderItem = new Object;
FolderItem = Folder.Items().Item();

document.all.item("lblFilepath").InnerText = FolderItem.Path;
frm.lblFilepath.Text = FolderItem.Path;
}
-->
</SCRIPT>

</head>

<body>
<FORM name="Form1">

<input type="Button" name="Button1"
value="Get Download Path" onClick="GetDownloadPath()" />

</FORM>

</body>
</html>
paradise_wolf
 
Posts: 0
Joined: Thu Mar 15, 2007 8:27 pm

Who is online

Users browsing this forum: No registered users and 4 guests