bsharath
asked on
Create a Html page that searches the filenames and displays the page.
Hi,
Create a Html page that searches the filenames and displays the page.
I want a page when entered a id it searched that id in the mentioned UNC or drive and opens the html page.
Like
1234
and it searched the filename and opens that page.
Regards
Sharath
Create a Html page that searches the filenames and displays the page.
I want a page when entered a id it searched that id in the mentioned UNC or drive and opens the html page.
Like
1234
and it searched the filename and opens that page.
Regards
Sharath
ASKER
Thank U any html code please...
Sharath,
Will this be running locally just on your PC, or published to the web and to run on a server? The only reason I ask is if you will not be running it locally and will be uploaded it to a web server, you will need some server-side code (ASP, PHP etc.) to achieve this.
Matthew
ASKER
Its for the intranet site of our.
For now its on my machine
For now its on my machine
Change
Msgbox Join(Location,vbCr)
to loop over Location's
Something like
Dim text
For Each item In Location
text = text & "<br /><a href='" & item & "'>" & item &"</a>"
Next
document.getElementById('o utput').in nerHTML=te xt
and have a div id="output" somewhere
Msgbox Join(Location,vbCr)
to loop over Location's
Something like
Dim text
For Each item In Location
text = text & "<br /><a href='" & item & "'>" & item &"</a>"
Next
document.getElementById('o
and have a div id="output" somewhere
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thank you Matthew ... How do i execute this. Saveas?
Put it into a Notepad page, then go to File, Save As. You have to type the filename as "filename.asp", with the quote marks and .asp on the end.
You will also need to execute the script on an IIS Server. This means it has to go into C:\Inetpub\wwwroot (once IIS is installed), and then you would go to http://<your computer's IP address>/filename.asp to access it.
Matthew.
ASKER
Matthew i get this
HTTP Error 404.3 - Not Found
The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.
When i tried to browse to the asp.
HTTP Error 404.3 - Not Found
The page you are requesting cannot be served because of the extension configuration. If the page is a script, add a handler. If the file should be downloaded, add a MIME map.
When i tried to browse to the asp.
ASKER
When i try to open the asp or like this
C:\inetpub\wwwroot\Search. asp
It asks me to save or open when i select open it again asks me to save...
C:\inetpub\wwwroot\Search.
It asks me to save or open when i select open it again asks me to save...
Normally I would save such a script as .hta and not serve it from a web server but directly from a hard disc
The only reason I suggest this be saved as an ASP page is because as mentioned it will be part of a company intranet.
With regards to the IIS problem, you definitely need to browse to the file using http://computername/search.asp (or you could use http://127.0.0.1/search.asp from your own PC). When you installed IIS on your Vista machine in Add/Remove Windows Features, did you check the box 'ASP' under 'World Wide Web Services'?
http://www.rgagnon.com/wshdetails/wsh-0019.html