473,402 Members | 2,072 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,402 software developers and data experts.

View images from local machine folder using javascript

13
hi,

I need to view local machine folder images list in div tag and on click of that link should display images in img tag in php page.

Thanks in advance,

Kind Regards,
Suraj
Jul 21 '08 #1
4 3747
acoder
16,027 Expert Mod 8TB
You can't access the local file system using JavaScript unless you have permissions. Is this for an internal application or for the web?
Jul 21 '08 #2
surajhs
13
You can't access the local file system using JavaScript unless you have permissions. Is this for an internal application or for the web?

it is web application. some times this link will work http://4umi.com/web/javascript/fileread.php
Jul 21 '08 #3
acoder
16,027 Expert Mod 8TB
That will only work in IE if you allow ActiveX.

For something cross-browser, use a file input field to allow the user to upload local images.
Jul 21 '08 #4
rnd me
427 Expert 256MB
you can use ajax to find the files on the local computer, if and only if, the user runs the page from a page saved above that directory on their local machines.

i have made a "harvester" page that ran locally, and then use a script tag to send the data back to an http location. not sure if that would help you.
Jul 21 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Jim H | last post by:
I have an app I working on that was working fine a few days ago. Now I get a jscript error: Microsoft JScript runtime error: Object expected in a part of the code that has not been modifed or...
6
by: Adrian | last post by:
Hi I want to write a simple DLL in C# that I can call from a local html page using JavaScript. I'm looking for a very simple example! The sort of think I'm looking for is from JS to call the DLL...
5
by: kiran | last post by:
hi, i just wanted to retrieve path of a file residing on local client system using javascript
6
pradeepjain
by: pradeepjain | last post by:
hii this is a new problem I need to read a folder and then take the images from there and display it in such a way tht after a certain time the neaxt image has to be taken ..in the sense it has to...
1
by: ckb | last post by:
Hi, I have to save a .xls file but i need to scan all the files in the particular folder before saving the file and prompt the user to replace the file if it already exists in the particular folder....
14
by: prashant | last post by:
hello, I am looking to determine the number of image files in a folder so that I could create a dynamic table accordingly. For this i need a method to identify the number of files in a folder. Is...
3
by: jaikant | last post by:
Hi, I am loading a xml file using javascript in Pocket Internet Explorer for local HTML file. I am not able to save the xml file back to the PPC device. foodXML = new...
1
by: hikumar | last post by:
Hi Guys, I want a javascript function which shows Public Shared Calendar(opens a window) when I click a link from the webpage. Please help me. Ex. /Public Folders/All Public Folders/Photography...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.