473,398 Members | 2,403 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,398 software developers and data experts.

Slideshow

I want to create a web-based slideshow where it'll hunt through all
the jpg files I put in a folder, irrespective of name or how many, and
cycle through them, one by one.
This would mean that whenever I have new pictures, I just upload
them, and they are automatically part of the slideshow merely by being
in the folder, without updating my code.
The problem, I think, is the security aspect of the web based utility
not having permission to look at files in one of its folders unless
they are named

Is this possible?
If not Javascript, what other language?
(I don't want the viewer to have to deliberately accept an activex
control, which seems one way I could make it work)

....I can dabble in a few languages, not great at any, but grateful for
a pointer in the right direction, if it's possible.

Cheers

Tont

Is it possible to set
Jul 20 '05 #1
6 4536
try www.dynamicdrive.com

"TonyJeffs" <to*******@aol.com> a écrit dans le message de
news:8e**************************@posting.google.c om...
I want to create a web-based slideshow where it'll hunt through all
the jpg files I put in a folder, irrespective of name or how many, and
cycle through them, one by one.
This would mean that whenever I have new pictures, I just upload
them, and they are automatically part of the slideshow merely by being
in the folder, without updating my code.
The problem, I think, is the security aspect of the web based utility
not having permission to look at files in one of its folders unless
they are named

Is this possible?
If not Javascript, what other language?
(I don't want the viewer to have to deliberately accept an activex
control, which seems one way I could make it work)

...I can dabble in a few languages, not great at any, but grateful for
a pointer in the right direction, if it's possible.

Cheers

Tont

Is it possible to set

Jul 20 '05 #2
For managing files you automatically upload on a server, you should do it on
the server side.
It can be done in ASP or PHP. don't know with javascript....

Let me get the script on ASP and I'll send it to you.

BoB

"TonyJeffs" <to*******@aol.com> a écrit dans le message de
news:8e**************************@posting.google.c om...
I want to create a web-based slideshow where it'll hunt through all
the jpg files I put in a folder, irrespective of name or how many, and
cycle through them, one by one.
This would mean that whenever I have new pictures, I just upload
them, and they are automatically part of the slideshow merely by being
in the folder, without updating my code.
The problem, I think, is the security aspect of the web based utility
not having permission to look at files in one of its folders unless
they are named

Is this possible?
If not Javascript, what other language?
(I don't want the viewer to have to deliberately accept an activex
control, which seems one way I could make it work)

...I can dabble in a few languages, not great at any, but grateful for
a pointer in the right direction, if it's possible.

Cheers

Tont

Is it possible to set

Jul 20 '05 #3
Here is the code for getting all files from a directory automatically. In my
case, I do show all thumbnails images with a link to bigger images. You may
change it for your needs. hope this helps.

<%
Dim objFSO
Set objFSO = Server.CreateObject("Scripting.FileSystemObject")

'Get the folder object associated with the directory
Dim objFolder
Set objFolder =
objFSO.GetFolder(Server.MapPath("../images/photogallery/thumbnails"))

'Loop through the Files collection
Dim objFile
For Each objFile in objFolder.Files
Response.Write "<div align=""center"">"
Response.Write "<a href=""../images/photogallery/images/"+objFile.Name+"""
onClick=""return
enlarge('../images/photogallery/images/"+objFile.Name+"',event)"">"
Response.Write "<img
src=""../images/photogallery/thumbnails/"+objFile.Name+"""
alt="""+objFile.Name+""" align=""bottom"" border=""1""><br>"
Response.Write "<br><br><br></a></div>"
Next

'Clean up!
Set objFolder = Nothing
Set objFile = Nothing
Set objFSO = Nothing
%>
"Bob Bedford" <be******@YouKnowWhatToDohotmail.com> a écrit dans le message
de news:3f*********************@news.sunrise.ch...
For managing files you automatically upload on a server, you should do it on the server side.
It can be done in ASP or PHP. don't know with javascript....

Let me get the script on ASP and I'll send it to you.

BoB

"TonyJeffs" <to*******@aol.com> a écrit dans le message de
news:8e**************************@posting.google.c om...
I want to create a web-based slideshow where it'll hunt through all
the jpg files I put in a folder, irrespective of name or how many, and
cycle through them, one by one.
This would mean that whenever I have new pictures, I just upload
them, and they are automatically part of the slideshow merely by being
in the folder, without updating my code.
The problem, I think, is the security aspect of the web based utility
not having permission to look at files in one of its folders unless
they are named

Is this possible?
If not Javascript, what other language?
(I don't want the viewer to have to deliberately accept an activex
control, which seems one way I could make it work)

...I can dabble in a few languages, not great at any, but grateful for
a pointer in the right direction, if it's possible.

Cheers

Tont

Is it possible to set


Jul 20 '05 #4
Hi,

TonyJeffs wrote:
I want to create a web-based slideshow where it'll hunt through all
the jpg files I put in a folder, irrespective of name or how many, and
cycle through them, one by one.
This would mean that whenever I have new pictures, I just upload
them, and they are automatically part of the slideshow merely by being
in the folder, without updating my code.
The problem, I think, is the security aspect of the web based utility
not having permission to look at files in one of its folders unless
they are named

Is this possible?
If not Javascript, what other language?
(I don't want the viewer to have to deliberately accept an activex
control, which seems one way I could make it work)

...I can dabble in a few languages, not great at any, but grateful for
a pointer in the right direction, if it's possible.

Cheers

Tont

Is it possible to set


This is exactly what I use WebLoadFile for:

http://www.galasoft-LB.ch/myjava/Web...Demo/Demo.html

Laurent
--
Laurent Bugnion, GalaSoft
Webdesign, Java, javascript: http://www.galasoft-LB.ch
Private/Malaysia: http://mypage.bluewin.ch/lbugnion
Support children in Calcutta: http://www.calcutta-espoir.ch

Jul 20 '05 #5
TonyJeffs hu kiteb:
I want to create a web-based slideshow where it'll hunt through all
the jpg files I put in a folder, irrespective of name or how many, and
cycle through them, one by one.
This would mean that whenever I have new pictures, I just upload
them, and they are automatically part of the slideshow merely by being
in the folder, without updating my code.
The problem, I think, is the security aspect of the web based utility
not having permission to look at files in one of its folders unless
they are named

Is this possible?
If not Javascript, what other language?
(I don't want the viewer to have to deliberately accept an activex
control, which seems one way I could make it work)


NOt tested, definately in need of further work, but...

var i = 0
while (i != NaN) {
preload[i] = new Image();
preload[i].src = i + ".gif";
// test for undefined somehow
if (preload[i].src is undefined) { i = "a"; }
else { i = i + 1; }
}

You'd still need to number your files sequentially with this of course.

--
--
Fabian
Visit my website often and for long periods!
http://www.lajzar.co.uk

Jul 20 '05 #6
JRS: In article <bq*************@ID-174912.news.uni-berlin.de>, seen in
news:comp.lang.javascript, Fabian <la****@hotmail.com> posted at Fri, 5
Dec 2003 06:42:23 :-

NOt tested, definately in need of further work, but...

var i = 0
while (i != NaN) {
preload[i] = new Image();
preload[i].src = i + ".gif";
// test for undefined somehow
if (preload[i].src is undefined) { i = "a"; }
else { i = i + 1; }
}

You'd still need to number your files sequentially with this of course.


IIRC, NaN is never equal to anything, not even another NaN or a copy of
itself. Moreover, a NaN is neither greater nor smaller than anything
else.

Better to use while (OK) { or do {...} while (OK) and compute
OK in the loop.

Consider

for (i=0;;i++) {
...
if (...) break
}

--
© John Stockton, Surrey, UK. ?@merlyn.demon.co.uk Turnpike v4.00 MIME. ©
Web <URL:http://www.merlyn.demon.co.uk/> - FAQish topics, acronyms, & links.
Proper <= 4-line sig. separator as above, a line exactly "-- " (SonOfRFC1036)
Do not Mail News to me. Before a reply, quote with ">" or "> " (SonOfRFC1036)
Jul 20 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Susanna | last post by:
Hi all, I'm using the following slideshow script that I found on the web to display changing images with a crossfade effect. Eventually I will be adding many more images to the slideshow. The...
2
by: Jeannie | last post by:
I have a popup window which is a slideshow of about 7 images. When the popup window loads, the first image is present and then the viewer can select next or previous to scroll through the rest of...
4
by: Luis Veras | last post by:
I have a slideshow on my main page at www.canvasartists.com. Many of my visitors started to complain that on their screen the slideshow displays as flashing and/or blinking very quickly, and you...
8
by: drillbit_99 | last post by:
I have an HTML page of thumbnail images. Each image can begin a slideshow of the images on the page by clicking on the image. This opens another HTML page that begins the slideshow using large...
11
by: David Graham | last post by:
Hi New to javascript. I'm trying to understand how a script at a website I come across works. http://www.BRPPISAFETY.COM Nearly got it but I have changed the variable called 'crossFadeDuration'...
22
by: bevoldjling | last post by:
Hi ! I need some help in putting together a website for our family gathering. Although I'm still pretty "green", I don't think what I need requires terribly advanced skills ...except for one...
1
by: ttamilvanan81 | last post by:
Hai everyone, I need to provide the slideshow for the images. I have upload the images into database. Then i will retrive all the images from the database and provide the slideshow for those...
2
pradeepjain
by: pradeepjain | last post by:
script> // (C) 2000 www.CodeLifter.com // http://www.codelifter.com // Free for all users, but leave in this header // NS4-6,IE4-6 // Fade effect only in IE; degrades gracefully //...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
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,...

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.