Detecting If Folder Exists Locally ?

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


ADVERTISEMENT

Ajax :: Browse For A Folder And Get *.xml Files In The Given Folder Path?

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

"C:folder" (assuming The User Typed "folder" And Such A Folder Existed)?

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

Jquery :: Username Validation(exists Or Not Exists In Database)?

Oct 17, 2011

I am working on a registration page.I did all the validation but facing problem during username validation.when a user enter email id in the textbox,it first check whether it is present in database or not.. if not present "register successfully" otherwise "email exists"

[Code]...

View 1 Replies View Related

Locally Var.s Affect Global Ones

Sep 7, 2005

Say I have script that looks a bit like this:

Array.prototype.getValue = function(ind, dir) {
if (dir !=0) ind[ind.length-1] += dir;
// more script
}

screens = [...// a big array
fnd = [1,2,3];
// 1.
a = findStart(fnd);
// 2.
b = findEnd(fnd);

findStart = function(cs) {
return screens.getValue(cs, 1);
}

findEnd = function(cs) {
return screens.getValue(cs, -1)
}

As I go from 1. to 2. the value of fnd changes. I don't understand how a
locally scoped variable might be affecting a global one.

View 1 Replies View Related

How To Talk Locally With Socket App

Apr 3, 2011

I'm creating a simple TCP/IP app that will assist in data storage with my JavaScript. The two main purposes of the app is to create local storage and make network connects.Anyone know how to get JavaScript to talk locally with the socket app? I know that XMLHTTPRequest is said to talk to TCP/IP. Is there anyway to make JavaScript point locally rather than toward the web?

View 14 Replies View Related

Call A Python Script Locally?

Apr 6, 2009

I'm writing an HTML page that will show a text box to allow me to enter UNIX shell commands and I want to be able to click "submit" and have it call a python script to execute the command and also update the page, but without using any HTTP calls.

The reason for this is I'm trying to develop a plugin for gtk-desktop-info which is a python program that displays HTML as your desktop background. Normally, to update information we just pass an interval parameter and the page is updated every x seconds. I'm trying to see if it's possible to just use javascript to call a python script when a button is clicked. I'm not well-versed on javascript so I don't know if it'd be possible.

View 1 Replies View Related

Script Works Locally But Not On The Web Server?

Nov 25, 2011

I must make clear that I am not a javascript programmer; I am simply trying to get this script to work on my website. It functions perfectly locally (with all browsers), but after uploading to my website, it shows the controls at the top, but not the content.

Below is the code for the FreeMind Flash Browser which can be found here: [URL]

It requires 2 additional files, flashobject.js and visorFreemind.swf plus the FreeMind file (*.mm) that stores the content. The FreeMind file that has the content displays perfectly on localhost, but not on the website. I have all of these files in the same directory and have double checked everything, but it still doesn't function on my website. I have other flash files and scripts on the same website in other pages that function perfectly.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>

[Code]....

View 3 Replies View Related

Accessing Files Being Served Locally

Jul 29, 2007

I'm writing a plugin for an application which has an undocumented API. I'm having to reverse engineer it a bit, but I've run into a part where I need to use javascript (I think).

Basically, the application provides the URL of a file that's being served locally (i.e. http://localhost:80/files/file.pdf).

I need to upload the file. I was initially going to do this in PHP, but then realised there might be an issue with firewalls.

I'm wondering if it's possible to upload the file somewhere in javascript? Or would need to use something like Flex?

View 2 Replies View Related

Store Images In An Array (perhaps Locally )?

May 3, 2011

First off, The application in question can be found at:[URL]... It uses pixastic, then the "convert to png" button converts the canvas to a saveable image. The application is going to produce a slideshow using the edited images. I obviously have the option of allowing my users to save the edited images locally, and then reload them to create the slideshow.

Ideally though, I would like this image loading process to be done from within the browser though.

View 3 Replies View Related

Lightbox Works Locally But Not Remotely / Fix It?

Jul 22, 2011

Totally new to this and doing my best to figure it out as I go along, hitting wall after wall. The lightbox on my site runs correctly when viewed locally, but pops up and displays nothing but the waiting gif when I try and view it remotely. Tried fixing my permissions, but to no avail.

View 1 Replies View Related

Menu Works Locally But Not When Uploaded To Server.

Jul 23, 2005

I have created a site with menu, it is working fine locally but when i
upload it on the server it dosen't work. When I click on submenu under
"Company" or "Products",It will show the actual url in the address bar
but it gives a error "405 - resource not allowed". Kindly check and
let me know the solution for this. If you know any other simple script
similar to this let me know.

View 2 Replies View Related

JQuery :: .load Works Locally, Not On Server - Only In IE

May 3, 2011

I've noticed very strange .load behavior. So - I have simple index page like this:

U can check it here: [url]

View 12 Replies View Related

JQuery :: Slides - Run The Code Posted On Doc Locally

May 27, 2010

I was looking at the docs and saw this one here: [url]

So I was trying to run the code posted on this doc locally which would be:

And it runs fine, but, my problem is if I save the these files locally:

It wont run anymore.

The modified code looks like this:

View 6 Replies View Related

JQuery :: Superfish Works Locally - But Not On My Webserver

Dec 13, 2010

For the life of me, I can't figure this one out. I've never had such an issue in the past and cannot find anything through a google search - and that's very rare for me.

So here's the technical nitty-gritty details:

I'm using jQuery hosted on [url]

I'm using the superfish drop-down menu and (at the moment) the default CSS, even if it doesn't integrate at all with my design

I'm also using "supersubs" to make the menu items larger

I'm building the menu through jquery by reading an XML through ajax. So I know jQuery works.

Everything is a-ok on 2 computers when viewed through either Firefox, IE or Chrome (even though it looks ugly in IE - didn't tweak it yet)

But, when I send the files through FTP to my host, it simply does not work. Neither my menu built through jQuery nor superfish or supersubs works. I don't get any sort of errors (normally, IE is helpful in pointing out javascript errors, but there's nothing this time).

The searches I did *had* results, but they were either about doing cross-domain ajax (which I'm not) or about javascript files not being served properly on the webserver. Knowing this server, that's most likely not an issue. I'mtransferringfiles using FileZilla, which also (I think) rules out transfer issues.

The URL: [url]

View 10 Replies View Related

Run Script Programs Locally Without Web Server Piece?

Feb 12, 2010

anyone know of a good method or run JavaScript programs locally without the web server piece? For example. I use jQuery, and develop in FF initially. Sometimes I will get a JS in error, something like Invalid Argument line 12 in jQueryThat tells me nothing. Which script is causing the error? Who knows. It's a pain as I'm sure many are aware. Aside from removing one script at a time, and clearing your cache all the time, is there a better method to pinpoint errors?

View 4 Replies View Related

Xml Parser Works Locally For FF But Fails On The Server

Mar 19, 2010

This one has plagued me for some time now. I am parsing an XML file for a search feature. On my local machine, the code below works fine in FF, but when I upload it, I get an error stating y[0] (the root element) is undefined. I think the problem may be with my onload method but I can't be sure.

function importXML()

I just can't figure out why this works locally and not on the server. IE works fine, but then again it uses the activeXObject method so it should function differently.

View 6 Replies View Related

Working Locally But Not When Uploaded To Hosting Server?

Oct 23, 2011

I am working on the following page: [URL]

There is a news script on the right-handside which rotates news items (a kind of scroller).

Locally this works without any problems, but once I've uploaded it to the hosting server this doesn't work. There is no javascript error sign.

I have double checked with the hosting and they support javascript by default.

View 3 Replies View Related

Script Working Locally But Not When Uploaded To Hosting Server

Oct 23, 2011

I am working on the following page: [URL]. There is a news script on the right-handside which rotates news items (a kind of scroller). Locally this works without any problems, but once I've uploaded it to the hosting server this doesn't work. There is no javascript error sign. I have double checked with the hosting and they support javascript by default.

View 3 Replies View Related

Loading Js Locally Not Working - Only Remote - Get Error In Functions In The Page

Nov 18, 2010

I download the jquery library, when i include it as such:

It loads but i always get some sort of error in the functions in the page or something...as if the js is loaded but not correctly or as if it's missing, even though the download itself is correct

If i change the include path to (which is the exact same file i downloaded):

Everything works fine i am thinking maybe it could be something that has to do with encoding maybe? am not sure...any clue? it's only happening with the jquery JS files, the rest are working fine.

View 9 Replies View Related

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 View Related

IDing Folder Name Using Javascript

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

Folder Type Menu

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

Search Through All Files In Folder?

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

Using To Load All Images In A Folder, And Doing It In A Certain Way?

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

Images Not Loading In Sub Folder?

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







Copyrights 2005-15 www.BigResource.com, All rights reserved