Hi there,
I'm pretty new at JavaScript and I'm wondering if it is possible to
dynamically fill up a drop-down box (on a html form) with the names of
all of the .txt files which are stored in a particular folder.
I am aware that JavaScript has restricted file operations for security
reasons and so it may not be possible to do this.
If anybody is aware of how to do this or knows if it cannot be done,
any clues on how to approach this would be greatly appreciated.
Thankyou
Matt 3 1538
In article <c7************ **************@ posting.google. com>, ma***********@h otmail.com enlightened us with... Hi there, I'm pretty new at JavaScript and I'm wondering if it is possible to dynamically fill up a drop-down box (on a html form) with the names of all of the .txt files which are stored in a particular folder.
I am aware that JavaScript has restricted file operations for security reasons and so it may not be possible to do this.
If anybody is aware of how to do this or knows if it cannot be done, any clues on how to approach this would be greatly appreciated.
If and how can't be answered until we know if the script is accessing
files on the server or the client.
Which way do you want it? Javascript on the client, looking at client
files? That can only be done (AFAIK) with an HTA, which requires windows
and MSIE. Or do you want Javascript to access files on the server? That
can be done a few different ways to work around the client/server issue,
but it most efficiently done with a server-side script.
--
--
~kaeli~
Murphy's Law #2000: If enough data is collected, anything
may be proven by statistical methods. http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace
Thanks for your post,
I'm sorry I forgot to specify, It will be to read files from the server.
Matt
kaeli <ti******@NOSPA M.comcast.net> wrote in message news:<MP******* *************** **@nntp.lucent. com>... In article <c7************ **************@ posting.google. com>, ma***********@h otmail.com enlightened us with... Hi there, I'm pretty new at JavaScript and I'm wondering if it is possible to dynamically fill up a drop-down box (on a html form) with the names of all of the .txt files which are stored in a particular folder.
I am aware that JavaScript has restricted file operations for security reasons and so it may not be possible to do this.
If anybody is aware of how to do this or knows if it cannot be done, any clues on how to approach this would be greatly appreciated.
If and how can't be answered until we know if the script is accessing files on the server or the client.
Which way do you want it? Javascript on the client, looking at client files? That can only be done (AFAIK) with an HTA, which requires windows and MSIE. Or do you want Javascript to access files on the server? That can be done a few different ways to work around the client/server issue, but it most efficiently done with a server-side script.
--
In article <c7************ **************@ posting.google. com>, ma***********@h otmail.com enlightened us with... Thanks for your post, I'm sorry I forgot to specify, It will be to read files from the server.
Do you have ANY server-side scripting capabilities?
Even a cgi-bin for perl? Or SSI?
I have a javascript code snippet that will fill a select element dynamically
using a cgi script. Only works in DOM browsers, though.
If you have no server-side scripting at all, you'll need to have something
that runs on the server to get that list into a text file so javascript can
include it. Or you'd need a java applet, which can read files from the server
and talk to javascript.
If you're using only MSIE, we might be able to use a COM or ActiveX, too. I'd
have to check into it, but I'm pretty sure you're not the first to want this,
so someone probably has written one already.
--
--
~kaeli~
Punctuation, capitalization, and grammar are your friends,
and will help people think that you aren't such an ignorant
moron, after all. http://www.ipwebdesign.net/wildAtHeart http://www.ipwebdesign.net/kaelisSpace This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Lamine Darbouche |
last post by:
Can anybody help?
I need to have three list boxes automatically populating each other, (ie
when region is selected from the first listbox, it will populate
automatically the second one which is the TOWNS and when the town is
selected is should populate the third one AREA) all data is in the database
in one table.
Any idea???
Many thanks in adavance.
Lamine
|
by: enigma261 |
last post by:
Hi,
I am a XML beginner.
I need some guidance in intrepreting a XML file
and then populating my object model.
Following is an example of the XML file ..
<Tom>
<Version>x.0</Version>
|
by: Janus |
last post by:
Hello.
I need a little advice for populating the treeview control.
I dont want my application to hang while populating the treeview, there is a lot of data what's the best approach?
Maybe something eventbased but how? please help...
Should I avoid populating the treeview control using a thread?
|
by: John Ninan |
last post by:
I am creating Dynamic Usercontrol in Asp.net application. In this application
I have a combobox(aspx Page). Which contains various items. Based on item
selected I am dynamically populating Usercontrols.
Problem:
When I am populating dynamic user control (ascx) page in Page_load event it
works fine for the first list item from combobox. When I change the item in
combobox, usercontrols are build properly but value will be same in second...
|
by: Patrick.O.Ige |
last post by:
Doing the simple DropDown List binding using the method NextResult()
But its just not populating ..
what am i missing
Its populating the 3 DropDwonList but no Data?
Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
If Not IsPostBack Then
Dim sqlConnection As SqlConnection = New SqlConnection
sqlConnection.ConnectionString =
| |
by: |
last post by:
Trying to learn about manipulating collections of objects, and populating
these objects dynamically from datasources. Could someone post a code sample
that shows the following:
Instantiating a collection object -- say, a dictionary.
Populating that collection object with custom objects, say, Person. What I
really want to see is how to populate the properties of those Person objects
from a datasource: instantiate one Person, fill...
|
by: wcaruso |
last post by:
Good afternoon. I'm in the midst of writing up a pretty "basic" web
form and having some difficulties. I'm completely open for
suggestions. I'm using VS.net 2003, and what iwould like to accomplish
is to have a form with two dropdown Boxes a button and a datagrid to
display what was selected from the drop downs. One of the drop downs
values can not be used more than once while the others can be repeated
as often as they like. Being...
|
by: blueapricot416 |
last post by:
I am on a team designing the front end of an Intranet application. The
backend guys will be using JSP and AJAX-like functionality to make
server requests that must dynamically change elements on a page.
What is the best way to create and populate tables, which will exist in
floating DIVs (with drag and drop capability)? It only has to work
with IE6.
I know of two ways:
|
by: 47computers |
last post by:
I have a couple of DropDownLists in a DetailsView control (your
classic country/state lists) and I need one to be populated based on
the current selection of the other. Currently this works fine with a
postback, but an AJAX solution would be a better way of doing things.
I've been googling around for some examples and tutorials, but so far
nothing is working. I'm really a beginner with AJAX and need a simple
example or tutorial for...
|
by: Eric B. |
last post by:
I am populating a DataGrid with many rows.
As it is populating I see the scrollbar flying but no rows pop up until it
is finished.
Is there a way to make each row draw as soon as it is finished populating?
Thanks!
Eric B.
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
| |
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |