Solved

Javascript extraction of file info from a domain browser window.

Posted on 2008-06-10
2
178 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Debugging Html 8 31
Can't get js code to execute 8 31
what should i learn? javascript or typescript? 3 36
DataTable column sorting incorrectly 2 19
Having worked on larger scale sites, we found out that you are bound to look at more scalable solutions to integrating widgets, code snippets or complete applications and mesh them into functional sites, in any given composition. To share some of…
Boost your ability to deliver ambitious and competitive web apps by choosing the right JavaScript framework to best suit your project’s needs.
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…

749 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