Current location: Hot Scripts Forums » General Web Coding » JavaScript » Help Please on HTML / Javascrip required to get Directory Files -


Help Please on HTML / Javascrip required to get Directory Files -

Reply
  #1 (permalink)  
Old 07-18-03, 11:37 AM
frontpage frontpage is offline
New Member
 
Join Date: Jul 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Help Please on HTML / Javascrip required to get Directory Files -

I am new to frontpage / html / javascript

I am trying to achieve the following

(1) i want to get the list of all files in a particular directory on a web page .
i was thinking of getting this info in a drop-down box
So i tried to use the following but it errors out

onclick of a dropdown i am calling a script to get the directory list

i am not sure what wrong am i doing


<html>

<head>
<meta name="GENERATOR" content="Microsoft FrontPage 5.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>New Page 2</title>

<SCRIPT LANGUAGE=JavaScript>

function get_dir()
{
var win;
Dim objDir As System.IO.DirectoryInfo = New System.IO.DirectoryInfo("C:\sachin") ;
}

</script>

</head>

<body >

<form method="POST" action="--WEBBOT-SELF--" onSubmit="">
<!--webbot bot="SaveResults" u-file="C:\My Home Page\Document Web Site\_private\form_results.csv" s-format="TEXT/CSV" s-label-fields="TRUE" startspan --><strong>[FrontPage Save Results Component]</strong><!--webbot bot="SaveResults" endspan i-checksum="6561" --><p>
</p>
<p><select size="1" name="D1" Onclick = "get_dir()" ></select></p>
<p> </p>
<p><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>
</form>

</body>

</html>
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Script for picking the first HTML file out of a directory (with sorted HTML files) jelteveld Script Requests 0 08-16-03 01:30 PM
Help Please on HTML / Javascrip required to get Directory Files frontpage Script Requests 0 07-18-03 11:34 AM
multiple Text files to html. andreas66 JavaScript 4 06-13-03 08:04 AM


All times are GMT -5. The time now is 02:20 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.