Solved

Javascript extraction of file info from a domain browser window.

Posted on 2008-06-10
2
176 Views
Last Modified: 2008-08-20
I have generated a browser window in Javascript using:  window.location = "ftp://domain"  I would like to browse to a file of interest and then extract the path to that file.  I am somewhat new to Javascript and am wondering whether a Treewalker object should do the trick?
0
Comment
Question by:nutronstar
2 Comments
 
LVL 63

Expert Comment

by:Zvonko
ID: 21758605
In JavaScript you cannot use ftp protocol with JavaScript Document Object Model. The DOM instantiates only http and https protocol document object model.
0
 
LVL 75

Accepted Solution

by:
Michel Plungjan earned 500 total points
ID: 21758878
And even if you could, the javascript would not let you due to the "Same Origin" policy that stops you form monitoring sites from other domains, protocols or ports.
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this article, we'll look how to sort an Array in JavaScript, including the more advanced techniques of sorting a collection of records either ascending or descending on two or more fields. Basic Sorting of Arrays First, let's look at the …
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question