Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > directory tag

Reply
Thread Tools

directory tag

 
 
Hywel Jenkins
Guest
Posts: n/a
 
      11-22-2005
In article <43835f05$0$13782$ l>, Huub
<"h.v.niekerk at hccnet.nl"> says...
> Hi,
>
> I'm writing a file which has a selection-form that should display the
> contents of a predefined directory. I found the <dir> tag but it appears
> to be depricated. Is there any tag I could or should use for this task?


Doubt it. Your question doesn't contain enough detail. Where is the
predefined directory? What does the selection form do?

--

Hywel
http://kibo.org.uk/
 
Reply With Quote
 
 
 
 
Jukka K. Korpela
Guest
Posts: n/a
 
      11-22-2005
Huub <"h.v.niekerk at hccnet.nl"> wrote:

> The selection form is actually meant to be a selection list. With this
> list you should be able to select a document from the predefined
> directory c:\Toevoegen.


Why don't you explain what you are really doing? You seem to have a specific
machine-dependent application in your mind, and HTML is probably one of the
hard and unsuccessful ways of creating it. HTML isn't a programming language
or a GUI, just a poor lonesome data format. There are no directories in HTML,
to begin with.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html


 
Reply With Quote
 
 
 
 
David Dorward
Guest
Posts: n/a
 
      11-22-2005
Huub <"h.v.niekerk at hccnet.nl"> wrote:

> I'm writing a file which has a selection-form that should display the
> contents of a predefined directory.


Assuming that "selection-form" means "A form containing a <select> element",
then you need to populate that element with suitable <option> elements.
HTML cannot read a directory and generate markup from it, you would need to
use some form of server side processing. The specifics of which would
depend on the capabilities of your webserver.

> I found the <dir> tag but it appears to be depricated.


Which was intended to markup directory listings, not to generate them.

> Is there any tag I could or should use for this task?


No.

--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
 
Reply With Quote
 
Huub
Guest
Posts: n/a
 
      11-22-2005
Hi,

I'm writing a file which has a selection-form that should display the
contents of a predefined directory. I found the <dir> tag but it appears
to be depricated. Is there any tag I could or should use for this task?

Thanks

Huub
 
Reply With Quote
 
Huub
Guest
Posts: n/a
 
      11-22-2005
>
> Doubt it. Your question doesn't contain enough detail. Where is the
> predefined directory? What does the selection form do?
>


The selection form is actually meant to be a selection list. With this
list you should be able to select a document from the predefined
directory c:\Toevoegen.
 
Reply With Quote
 
Huub
Guest
Posts: n/a
 
      11-22-2005
Jukka K. Korpela wrote:
> Huub <"h.v.niekerk at hccnet.nl"> wrote:
>
>
>>The selection form is actually meant to be a selection list. With this
>>list you should be able to select a document from the predefined
>>directory c:\Toevoegen.

>
>
> Why don't you explain what you are really doing? You seem to have a specific
> machine-dependent application in your mind, and HTML is probably one of the
> hard and unsuccessful ways of creating it. HTML isn't a programming language
> or a GUI, just a poor lonesome data format. There are no directories in HTML,
> to begin with.
>


What I'm doing (really) is this: creating a HTML/ASP script. With this
script the maintainer of a webpage can select an M$ Word document (by
means of a selection list) from a predefined directory and put the name
of that document into a file. This contents of this file, containing
documentnames, will be shown as a frame in another webpage. I hope this
clears things up.
 
Reply With Quote
 
Disco Octopus
Guest
Posts: n/a
 
      11-22-2005
Huub wrote:

> Jukka K. Korpela wrote:
>> Huub <"h.v.niekerk at hccnet.nl"> wrote:
>>
>>
>>>The selection form is actually meant to be a selection list. With this
>>>list you should be able to select a document from the predefined
>>>directory c:\Toevoegen.

>>
>>
>> Why don't you explain what you are really doing? You seem to have a specific
>> machine-dependent application in your mind, and HTML is probably one of the
>> hard and unsuccessful ways of creating it. HTML isn't a programming language
>> or a GUI, just a poor lonesome data format. There are no directories in HTML,
>> to begin with.
>>

>
> What I'm doing (really) is this: creating a HTML/ASP script. With this
> script the maintainer of a webpage can select an M$ Word document (by
> means of a selection list) from a predefined directory and put the name
> of that document into a file. This contents of this file, containing
> documentnames, will be shown as a frame in another webpage. I hope this
> clears things up.


Is it possible for you to use the <input type="file">. they can then choose
whatever doc they want from whatever directory.
You then upload it to your server, and send it back out to the other frame.
Perhaps not exactly what you had in mind, but may a workable solution to a
problem that can not be solve with HTML.

--
mmmmm, jerky : http://www.choicebeefjerky.com.au
dance with children in the rain
 
Reply With Quote
 
Jukka K. Korpela
Guest
Posts: n/a
 
      11-22-2005
Disco Octopus <> wrote:

>> What I'm doing (really) is this: creating a HTML/ASP script. With this
>> script the maintainer of a webpage can select an M$ Word document (by
>> means of a selection list) from a predefined directory and put the name
>> of that document into a file. This contents of this file, containing
>> documentnames, will be shown as a frame in another webpage. I hope this
>> clears things up.

>
> Is it possible for you to use the <input type="file">.


Yep. The hard part is to write the handling of the submitted file (after
checking its size, the user's credentials, and a few other things).
The generics (with almost no info on ASP specifics, sorry) are described at
http://www.cs.tut.fi/~jkorpela/forms/file.html

> they can then
> choose whatever doc they want from whatever directory.


Yes. But there's unfortunately no way to restrict the choices (filter the
view) to Word documents, except manually by the user in the dialog.

Neither is there any way to set the initial directory in the form.

> You then upload it to your server, and send it back out to the other
> frame.


Maybe. But frames are considered evil, and displaying a Word document "inside
a browser" all too often messes things up.

--
Yucca, http://www.cs.tut.fi/~jkorpela/
Pages about Web authoring: http://www.cs.tut.fi/~jkorpela/www.html


 
Reply With Quote
 
Huub
Guest
Posts: n/a
 
      11-23-2005
>>Is it possible for you to use the <input type="file">.
>
>
> Yep. The hard part is to write the handling of the submitted file (after
> checking its size, the user's credentials, and a few other things).
> The generics (with almost no info on ASP specifics, sorry) are described at
> http://www.cs.tut.fi/~jkorpela/forms/file.html
>
>
>>they can then
>>choose whatever doc they want from whatever directory.

>
>
> Yes. But there's unfortunately no way to restrict the choices (filter the
> view) to Word documents, except manually by the user in the dialog.
>
> Neither is there any way to set the initial directory in the form.
>
>
>>You then upload it to your server, and send it back out to the other
>>frame.

>
>
> Maybe. But frames are considered evil, and displaying a Word document "inside
> a browser" all too often messes things up.
>



Thank you for your help.
 
Reply With Quote
 
 
 
Reply

Thread Tools

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
System.IO.Directory.GetDirectories() and System.IO.Directory.GetFiles() are not returning the specified directory Nathan Sokalski ASP .Net 2 09-06-2007 03:58 PM
how do u invoke Tag b's Tag Handler from within Tag a's tag Handler? shruds Java 1 01-27-2006 03:00 AM
To vlan tag or not to tag? budyerr Cisco 1 07-08-2004 03:45 AM
struts tag inside a tag kishan bisht Java 1 07-08-2003 11:04 PM
How to embed the <jsp:plugin> tag into a tag handler class...HELP !! jstack Java 1 07-04-2003 06:58 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57