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?
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?
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.
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.....
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?
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.
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.
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?
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.
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)?
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.
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.
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 (?)
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?
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?