473,385 Members | 1,641 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Search Current Directory

3
I would like to search the current directory for say files beginning with VV*.html and display them as HREF links in a web page, can anyone help me with this please.
thank you
Jul 6 '07 #1
5 1770
acoder
16,027 Expert Mod 8TB
Welcome to TSDN!

You can do this on the server-side using PHP, ASP, Coldfusion, JSP or whatever. Which language are you using?
Jul 6 '07 #2
ss2122
3
is it possible in Javascript?
Jul 7 '07 #3
gits
5,390 Expert Mod 4TB
hi ...

no ... it is not and it shouldn't be possible ... imagine a website that may search your harddrive ... nobody really wants that ... all javascript actions are relativly strong bound to the browser ... except writing a cookie you have no real access to the users harddrive ...

but i think you want to search the servers directory ... and that is not possible too ... javascript runs in the webbrowser ... so you don't have access to the server at runtime ... so this cannot work ... you have to use a serverside language for that and add the links you want before sending the page to the browser ... or make an ajax-call through javascript, invoke a serverside script, get the response and add the links you get at runtime with javascript ... that is the only thing that javascript involves ... doing things at the browser ...

kind regards
Jul 7 '07 #4
ss2122
3
Hi,
Thank you for your reply.

Sorry, I didn't make my self clear, I wasn't intending to read client's directory.

I wanted to search the server's directory of where the page was loading from and build the links with certain type of files.

The idea was that you have a master page which lists current assignments which are hyperlinks for further details.

So whenever a new assignment is added, rather than editing the master page, if it could just look for certain file types and build the page dynamically. The user just uploads/deletes the html files as and when assignments change.

I have done it before using ASP, not sure if ASP pages are allowed with this provider, was just wondering if it was possible with javascript.

Best regards
Jul 8 '07 #5
acoder
16,027 Expert Mod 8TB
I have done it before using ASP, not sure if ASP pages are allowed with this provider, was just wondering if it was possible with javascript.
It's not possible with Javascript, but you can do this with any server-side language. Find out which language your provider supports.
Jul 9 '07 #6

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Stephen Ferg | last post by:
I need a little help here. I'm developing some introductory material on Python for non-programmers. The first draft includes this statement. Is this correct? ...
3
by: Peter Schwalm | last post by:
I'd like to modify the python search path depending on the source directory of the script being started. The reason is: I use a version control system, and the python scripts and modules are...
3
by: Charles Herman | last post by:
I am using the following flags for the g++ command -I/usr/local/gcc-3.3/include/c++/3.3 -I/usr/local/include/g++-3 But istead of searching the first directory first, it searches the second...
5
by: John Black | last post by:
Hi, I have a code to open a file like this, int r = open("file1", O_RDONLY, 0); let's say the executable a.out is at <dir> and file1 is also at <dir>, then no problem. The problem is when...
3
by: Mats-Lennart Hansson | last post by:
Hi, Is there a way to set a path (on computer or project basis) where the project should search for referenced assemblies? I have a build program in which I build all projects into the same...
5
by: | last post by:
We have this situation: We have a unmanaged c++ executable located in a certain folder (a.exe) It loads a mixed mode managed/unmanaged dll using MFC dynamically from a completely different path...
0
by: Chris | last post by:
Hi, I have a search function pulling data from a MySQL db which works nicely - other than the fact that I can't get the URL to link correctly when the linked document is located in the home...
4
by: Dan Manges | last post by:
Given a type as a string, is there an easy way using reflection to find where it resides in the .NET framework? Example: Given "XmlNode", get "System.Xml" Given "ArrayList", get...
3
by: Gabe Matteson | last post by:
I am trying to set the maximum value of the progress bar so that when a user searches through the specified directory they can see their status. the progress bar name is on form2 and is named...
8
by: tow | last post by:
I have a python script (part of a django application, if it makes any difference) which is exhibiting the following behaviour: import my_module # succeeds imp.find_module("my_module") # fails,...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.