Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
How to display images from server folder using javascrip
Venkatesh K H
Jul 25 2017 3:02 AM
285
I have uploaded the files in the server folder with the name upload. The images are uploading into the that folder but now how to get all those images from upload folder and display all the images using javascript or ajax. please help. I have tried this code but didn't work.
<script type="text/javascript">
function uploadStarted() {
$get("imgDisplay").style.display = "none";
}
function uploadComplete(sender, args) {
var imgDisplay = $get("imgDisplay");
imgDisplay.src = "upload";
imgDisplay.style.cssText = "";
var img = new Image();
img.onload = function () {
imgDisplay.style.cssText = "height:100px;width:100px";
imgDisplay.src = img.src;
};
img.src = "upload" + args.get_fileName();
}
</script>
Reply
Upload Source Code
Select only zip and rar file.
Post
Reset
Answers (
1
)
Insert data to sql table from JAVA
How to fetch the images from folder in java