Use Var To Get Folder Name?
Sep 18, 2011
I want to use var to get folder name by javascript?
I writed like:
http://muangay123.com/hoi_sitepoint/can_hoi.zip
code file.htm:
<script>
thu_muc=new Array();
thu_muc[0]="may_danh_giay";
[Code]...
View 1 Replies
ADVERTISEMENT
Sep 15, 2009
using ajax/javascrtipt, how to browse for a folder and get *.xml files in the given folder path.??
View 2 Replies
View Related
Jul 13, 2010
Originally I had the following code. What it does is for a user to type the folder name of their choice and then after clicking submit a window will pop open and they will be taken to "C:folder" (assuming the user typed "folder" and such a folder existed). Here is the code in case I wasn't clear.
<html>
<head>
<script type="text/javascript">
[code]....
View 2 Replies
View Related
Jul 23, 2005
i'd like to find a javascript that can specify the foldername a page
finds itself within.
i'm not a Javascript expert, but i know this can be done by saving the
full URL into a string, then using a decrementing array to locate the
foldername within the URL.
is there a better way in javascript? does anyone know where i can find
a currently working script i might look at?
View 1 Replies
View Related
Jul 23, 2005
Some time back we assembled an Explore-type menu system (tree of
folders) for a client site which has grown to be a pivotal function of
the site in that deep navigation into the South African Education Law
all hangs off this structure.
From our side, it has all worked perfectly and the client is about to
launch the site, but claims that he has continual problems with some
folders opening to pages where files cannot be found, and the menu
system then locks up. Fine.... accept that. Except that we cannot
replicate the problem. On several machines we have opened the tree
structure hundreds of times, and with never a single problem.
The first indication the client has of a problem is when the site
loads, and some of the "plus signs" (used to indicate that there are
underlying folders) do not show. Just the red background. But if
you mouse over where the "plus sign" should be - then the "hand icon"
appears and the correct link is shown in the URL box. But if you
click to the link it shows "done" but the link won't load. Reverse
back to the menus and the buttons now no longer work and most don't
display.
This seems to be happening only within the client's site which is a
simple Windows Network connecting through a broadband DSL router to
the internet. He claims that on three different office machines he
can replicate the problem.
The problem is intermittant and will often work fine for an extended
session. next visit to the site and the problems will be back.
Could this be a caching issue.? Or older Java engines.? Maybe we
should be using a more universal javascripting routine. Sadly our
in-house java skills are low and we've just hacked away at public
scrips to get this working.....
View 1 Replies
View Related
May 31, 2010
i'm supposed to use javascript to search through a folder that contains many excel files. the search term is obtained from a front end html form, javascript gets that value, search every single excel file in the folder and see which file has a cell that matches the search terms.
I currently know (sort of) how to search through 1 file. but how do I search through many files? and from what i see from the searching of 1 file, it takes a few seconds to open and close the excel file (located on a network drive). which means it will take a fair bit of time to cycle through 97 excel files. Is there like any searching algorithm to speed up the process?
View 3 Replies
View Related
Mar 2, 2011
This is my first post. I know some html and css, but not much about javascript, and I have an existential problem with a portfolio i'm helping to design: The portfolio itself is for a night photographer that covers different events. For each event there is a page where the photos from that event are displayed.The thing is i don't want to write html code for each and every event, so i've been investigating how to automate this process and i've been answered: javascript.
I want a horizontal layout page for each event, where all the images from its folder are displayed, with a horizontal scrollbar and no vertical scrollbar. I've managed to cover this with a combination between css and javascript code.
[Code]...
View 1 Replies
View Related
Mar 20, 2010
I am using Lightbox v2.04 with ASP.Net 2008. The issue i am finding is that the images that are controlled by the java script are not loading if the page is in a sub folder. I have my main folder that contains a folder for my java script folder, a folder for my images, and a folder that contains some pages.
This is the code in the lightbox.js file that i believe may be the cause.
LightboxOptions = Object.extend({
fileLoadingImage: '../images/loading.gif',
fileBottomNavCloseImage: '../images/closelabel.gif',
Is there something specific that needs to be done so that the pages in the sub folder can have this work?
View 2 Replies
View Related
May 27, 2009
I want to create a preload for images but do not want to have to specify every single image file name.Is there a way to just specify a folder and all images in ti will be preloaded?
View 2 Replies
View Related
Dec 15, 2005
Is it possible to have a folder browse option in javascript on button click
View 3 Replies
View Related
Jun 13, 2011
I want to store my images in a folder images/slideshow/1.jpg for all my images up to 10.jpg. I have tried to adjust the code so i can store the images in a folder but the code cant find the images.
I have this code in the head section:
<script type="text/javascript">
thisImg=1;
imgCt=10;
function newSlide(direction) {
thisImg = thisImg + direction;
if(thisImg <1) {thisImg = imgCt;}
[Code]...
View 35 Replies
View Related
Mar 10, 2009
With html you can have a file input that browses for a file to upload.
As far as I can tell you have to pick a file and can't pick a folder.
Is there a way to pick a folder with JS. I don't want to upload, I just need the path.
View 5 Replies
View Related
Dec 19, 2005
How could I make a random image slideshow with the images being in a folder and not listed in the head tag? (I have over 1,000 images and do not want to list them all in my index page)?
View 1 Replies
View Related
Jul 20, 2005
I am trying to hide my JavaScript source. The method I chose was to
keep all the important source in a password protected folder, and then
use a SRC="folder/script.js" to include it in my code. This way, the
script will run, but the user will be unable to view the included
code. Or so I think :).
I have tried this method, and it seems to work. However, I would like
to know if you can see any problems with this. For instance, can you
think of a way to bypass this and get at script.js? Can you foresee
any problems that would arise as a result of keeping scripts behind
password protected folders? Any other security concerns?
View 22 Replies
View Related
Oct 27, 2011
I'm developing a virtual file cabinet application using JSP. I'm able to display files and folders under specific root folder. My requirement is to display a button next to each server file which when clicked, a browse for folder dialog should popup with the server directory tree structure like below: something like this: Instead of desktop which is client machine folder, i want a jquery control that i can use to display server folders where i've control passing the root directory path to the control depending upon what a user can access.
View 4 Replies
View Related
Oct 20, 2011
I wanna get the list of *.jpg files in a folder beside of my html with JQuey.
View 1 Replies
View Related
Dec 27, 2011
I will try to explain as simple as possible.
my directory structure is:
-root
-js
-jquery.js(v1.7.1)
[Code]....
View 3 Replies
View Related
Sep 21, 2010
I need a list the files in a folder that is in my website. Can I do this using jQuery? also, the user will able to click in the link to open the file.
View 2 Replies
View Related
Jul 6, 2010
I want to allow my users to browse the folder from my web page in firefox?
How can i do this?
View 3 Replies
View Related
Mar 19, 2009
I am using the below code to read and disply folder contents to html.
<script type="text/javascript">
function callcontents(foldername) {
parent.document.getElementById('Bottom').src = 'bott.php?FolerName=' + foldername
}
</script>
<div>
<a href="javascript:void(0);" target="iFrame1" onClick="callcontents('public_html/folder1'); return false"'>Click to View Folder 1 Contents</a>
</div>
The script is working fine. Its not in oder, I need to know how to sort ascending order, desc or by modified order of all files.
View 1 Replies
View Related
Nov 25, 2011
I have written a custom slideshow script which gets the images from an array... The script will change the src of a img, which is a fullscreen background. Now here's the problem, I've been trying to write a function where can define a folder "gallery est", and then get all image files in that folder and repopulate the slideshow array. So, is there a way to scan folders? I've searched around and found some solutions where PHP is used, but i really want to keep this pure js, if possible (?)
View 1 Replies
View Related
May 15, 2007
I'm struggling to read files in a folder and then pass the variable to the following:
</body>
<OBJECT ID="MediaPlayer" width=320 height=310 classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" type="application/x-oleobject">
<PARAM NAME="FileName" VALUE="video/RC Radio Controlled Model Airplane [from].wmv">
<PARAM NAME="AutoStart" Value="false">
<PARAM NAME="ShowControls" VALUE="true">
[Code]....
View 6 Replies
View Related
Sep 10, 2009
It states:"The ie6-upgrade-warning is a little script (7.9kb) that displays a warning message politely informing the user to upgrade the browser to a newer version (links to newest IE, Firefox, Opera, Safari, Chrome are provided). The webpage is still visible behind a transparent background, but access to it is prevented. The idea is to force users to upgrade from IE6 and avoid the website from a bad reputation that website is not rendering correctly in IE6.InstallationJust insert the line<!--[if lte IE 6]><script src="js/ie6/warning.js"></script><script>window.onload=function(){e("js/ie6/")}</script><![endif]-->right after the <body> declaration of the webpage and change the e("js/ie6/") to the folder where the script's icons images are located."
So I uploaded the IE6 folder and put the line of code below the <body> declaration and changed the {e("js/ie6/")} to the icon folder.But I don't see any instructiosn after I uploaded the IE6 warning folder. Has anyone used this? Is there somthing I should do after I zipped the IE6 folder and uploaded it?
View 9 Replies
View Related
Oct 12, 2010
Currently I have a range of images some portrait in size and some landscape, what I want to do is batch resize these images so they all fit the fixed dimensions of 180px x 120px.I understand that you can add .jsx files into the scripts folder of photoshop but right now I can only find scripts that resize the image based on 1 side which isnt that helpful.Does anyone know were I could find examples of the code I need or can anyone offer me some advice?
View 6 Replies
View Related
Nov 4, 2004
Is it possible to detect if a folder exists locally in Javascript ?
(on the client computer connecting to server).
And better yet - is it possible with JavaScript to detect specialfolders
such as the STARTUP folder ?
View 4 Replies
View Related
Aug 8, 2005
I have written a couple of functions to open and close <ul> like a forlder tree which is working great. I have a tiny little problem. When you open and close folders the icons are not properly swapping to indicate their state. Code:
View 3 Replies
View Related