Javascript Read Web Directory
Aug 17, 2006
I need to make a javascript read a web directory from a remote site (ie
"http://remotesite.com/images") (The remote die does not have an index.htm and does have directory listing enabled)
I have seen many samples but they all use frames or iframes, all I want
is a method that you can say:
<body onload="readremotedir('http://remotesite.com/images');">
and the method would get the directory listings and populate an array
var Pic = new Array()
............
View 3 Replies
ADVERTISEMENT
Jul 20, 2005
I've got a question relating to using Javascript on an Intranet. I have a directory with a list of files in the format week36.xls, week37.xls and I want to write a script that will scan all the files in the directory and select the one with the highest week number then display in the browser window. A brief search hasn't revealed any code to do this so I just want to know if it is possible and what the function names are that would be involved.
View 2 Replies
View Related
May 14, 2007
is there a way of pointing to a directory where all JScripts are living and let it pick and choose what it needs from which scripts or do I have to do the picking through files each time I write a script that depends on others?
View 6 Replies
View Related
Jul 23, 2005
does anyone know of any script which can edit the group attributes in
active directory.
for use this script to set the group setting such that this group only
has access to a specific folder.
View 1 Replies
View Related
Nov 9, 2010
I'm working on a project for work and I'm having some issue trying to distribute to program the smoothes as possible, on idea I had was using Javascript, Im kind of new at this so ill explain to you what Im hoping to do. Basically Im looking for a onload= function when the .hta opens it would get a file from lets say G:\path\path1\path2\file.hta to C:\path\path1\folder So it would take the file and copy past it in another folder from a different directory. If a popup message could popup saying completed
View 6 Replies
View Related
Jul 23, 2005
I thought this would be simple for me to work out, but I can't seem to find reference to it. I'm flexable on how I call a URL, thus, if I have any one of the following:
http://www.mydomain.com/index.html?err=dup
http://www.mydomain.com/index.html?err=1
http://www.mydomain.com/index.html?dup
How can I read the value to the right of the question mark?
I want to create a javascript function which reads the url, and, if the url was passed an arguement, it acts on it (namely, displays an error message)....
View 1 Replies
View Related
Mar 2, 2006
I would like to some javascript connect to a URL on the same webserver
and read a CGI. The output from this CGI is not plain HTML but rather
data which needs to be displayed in a moving graph. Coming from a Perl
background I'd say I'm looking to do something like:
while (my $data = read_url(http://whatever) {
print some pretty moving data across the screen;
}
Is something like this possible to do in javascript?
View 3 Replies
View Related
Dec 28, 2006
If you give an element an inline property, as in
<div id='testDiv' style='display:block'>blah</div>
then an alert(document.getElementById('testDiv').style.display) will of course give you "block." But, if you give the element a property through an external CSS file, the same alert comes up empty!
This is causing me big problems as I've discovered and is ridiculous. Can javascript read properties from external CSS sheets?
View 2 Replies
View Related
Jul 20, 2005
I am using a standard javascript that I downloaded from
javascriptsource.com to read from and fill in a form using cookies.
The page tests well in every browser except Apple's Safari (from
10.3.2)
Unfortunately, my clients daughter uses Safari so I have to get it to
work with it, even though most of his clients use IE.
What do I need to do to change the code so this will all work in
Safari? Code:
View 1 Replies
View Related
Oct 24, 2005
I have an XML document which lists some information about movies(Title, actor, etc.) I am using Javascript to pull that data and display it as html. Is it possible to create a link for each one of those titles that are pulled from the XML in my JS? Here is my code:
for (var i=0; movies.length > i; i++)
{
var Title = movies[i].getElementsByTagName("title");
var Actor = movies[i].getElementsByTagName("actor");
var Price = movies[i].getElementsByTagName("price");
results += i+1 + '. ' + ' "<span class="title"><a href="http://www.imdb.com">' + Title[0].firstChild.nodeValue + '</a></span>"' +
' starring <span class="actor">' + Actor[0].firstChild.nodeValue + '</span>' + ' and costs approximately $'+ Price[0].firstChild.nodeValue + "<br/>
";
}
document.getElementById("displayresults").innerHTML = results;
View 5 Replies
View Related
Nov 10, 2005
I'd like to read and modify a cell (e.g. 'Text 1') in the following HTML table with a javascript:
==============================================
<html>
<body>
<table id = "MyTable">
<tr id = "Row1">
<td width = "40%">
Text 1
</td>
<td width = "60%">
Text 2
</td>
</tr>
</table>
</body>
</html>
==============================================
With
var table = document.getElementById("MyTable");
I can access the table and with
... table.rows[var_tabelle.rows.length - 1].firstChild
I can somehow access the row. But I can't read and also not change the
content.
View 1 Replies
View Related
Jul 23, 2005
Ive been banging my head on the wall for hours with this one, hopefully
someone will know what Im doing wrong here :
The Goal:
I have an xml file that is generated on the fly via JSP which I want to
load into a Microsoft.XMLHTTP ActiveX object and manipulate via
javascript on the client side. Data is retreived from the server at the
request of the javascript without having to reload the page.
The Problem:
For the JSP to dynamically output xml, the file must have the extension
JSP, which is set to the mime type of dynamo-internal/html on the
server side (as we are using ATG Dynamo). But the javascript on the
client side will not retrieve anything unless the file extension is
..xml (or the mime type is recognized as text/xml). So the only way I
can get it to work is to change the extension to .xml, which then of
course amkes it so that the server will not process any of the JSP
code.
Ive tried to override the mime type within the javascript, using the
setRequestHeader method after opening the file, but no luck. A call to
alert the value of req.responseXML.xml after the send() turns up empty.
Ive only gotten it to work if I use a static xml file in palce of the
jsp. Sample of the javascript code is below:
if (window.XMLHttpRequest) {
// branch for native XMLHttpRequest object - THIS WORKS
req = new XMLHttpRequest();
req.overrideMimeType("text/xml");
req.onreadystatechange = processReqChange;
req.open("GET", "models.jsp?cId=300006&mId=TAC24", true);
req.send(null);
alert(req.responseXML.xml); //this gives me the resulting xml file
} else if (window.ActiveXObject) {
// branch for IE/Windows ActiveX version - NOT WORKING
req = new ActiveXObject("Microsoft.XMLHTTP");
if (req) {
req.onreadystatechange = processReqChange;
req.open("GET", "models.jsp?cId=300006&mId=TAC24", true);
req.setRequestHeader("Content-Type","text/xml");
req.send();
alert(req.responseXML.xml); //this gives me nothing
}
}
In looking at the following example the Microsoft gives (bottom of
page):
http://support.microsoft.com/defaul...B;EN-US;Q290591
I just dont see what could be going wrong here.
I should note that I successfully got the script to work using the
XMLHttpRequest object and the overrideMimeType() method. This works
with FireFox and I think some Mozilla clients, but not with the all
important IE5, which instead uses the XMLHTTP ActiveX control.=
View 2 Replies
View Related
Dec 21, 2006
I shoud give a "value" to an DIV's ID that change following the name of the
directory where the file is.
For example the file is here:
www.website.com/web/01/file.html
Is it possible with javascript to give the value "01" to the DIV's ID?
<div id="namedirectory"something inside </div>
so it could be readed as:
<div id="01"something inside </div>
I found in internet this one:
<script language="JavaScript">
fullpath=location.pathname;
document.write(fullpath);
document.write('<br />');
result=fullpath.split("");
document.write(result[5]);
</script>
it's something that could work?
I don't know how to recall the value in the ID...
View 6 Replies
View Related
Jul 23, 2005
I'm looking for a way to select a directory from a local drive through a
form (like input type="file" except I want to get a directory name not just
a file). I've searched every way I could think of (refer to my brain comment
above) and come up with absolutly nothing.
View 2 Replies
View Related
Apr 21, 2009
How to seperate the result of a direcory read.
Example, I know the files will be images.
How can I show the portrait first and then landscape second ?
Here is my code :
PHP Code:
View 2 Replies
View Related
May 11, 2009
I'm trying to combine two scripts I found online to make a preloader for all the images in a folder. The javascript part works when you manually enter in a list of images, so I was trying to make a php array to get all the names of the images in one directory, then use that to list them. Here's what I tried:
<?php
function dirList ($directory)
{
[code]...
View 5 Replies
View Related
Jul 16, 2009
i have this web application in which the user has to browse and select a folder but not file. i used <input type="file"> , which helps in retrieving only files.
View 3 Replies
View Related
Mar 28, 2011
I have some images 5 or 6 that are 800 x 300 i use in my website banner.The start loading but when number one is 1/3 of the way teh next one starts then the next, it looks real messy nee some way to preload them ... like black square or something .code i used below
<script language="JavaScript">
// configuration structure
var A_TPL = {[code].....
View 1 Replies
View Related
Aug 10, 2009
I am trying to think of a good way to write some javascript that checks to see if the url entered by a user is base directory url and not an individual page. For example,
I want them to enter something like:
http://www.example.com
And not an individual page like:
http://www.example.com/index.html
View 2 Replies
View Related
Jun 28, 2002
I have a simple question. How do backup directories levels in JavaScript?
<SCRIPT LANGUAGE="JavaScript" SRC="(../)js/browserdetect.js"></SCRIPT>
The text in parenthesis doesn't work (which you guys probably already know).
What does work?
View 3 Replies
View Related
Aug 21, 2006
I have a webserver setup in my home, with an index file that is an access
comtrol page, that, if the authentication is sucessfull, takes the user to a
specific directory. In this directory I only have image files in .jpg format.
I need to create a page were the user can either browse the entiry
directory, or specify a filename to search for, wildcards enabled, and
beiing able to see a reduced size image in the result page when hovering the
image/file result link. Any Ideas?
View 1 Replies
View Related
Nov 2, 2011
How can I dynamically get all files name from a directory?I need to have a directory with pictures, and when I copy new ones, on my website to have them listed inside of a div. If jQuery can't do this, there is otherpossibility
View 1 Replies
View Related
Apr 27, 2011
I've created a jquery slideshow what I wanna do is to pull files from a directory and add them to the slideshow like open file dialog or any other technique.
View 12 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
Aug 14, 2011
I have almost 300 photos that I want to have in a gallery that is easy to use. I would like to avoid making 300 list items (as is necessary with all of the auto rotators and other jquery plug ins that I've found) but to have the images load straight from the folder after the rest of the website has loaded.
It wold be nice if maybe there was a pretty horizontal scroll bar or something and the image in the middle of the page was biggest if possible, but I'm really not picky. I don't know what the best way is to display so many photos! They don't need captions or anything.
View 1 Replies
View Related
Dec 9, 2005
As the title of this post implies, I need a script to automatically list all of the pages in the same directory as the page that contains the index.
View 15 Replies
View Related