JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 1st, 2012, 05:56 AM
shakash3obd shakash3obd is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2012
Posts: 1 shakash3obd User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 31 m 50 sec
Reputation Power: 0
Post New user - what is the best way to create web gallery

Hello Everyone,

I am a computer scientist who worked with html and php as far as web development but I have never built an entire website.

I just graduated from college so my experience is not much.

Now here is the thing, I want to create a web page to represent my photographs and designs and I faced the following problem:
I want to create a single html page with either link as text or button to navigate to the next and previous picture.

When it came to the point of changing the picture, I created a javascript to switch to a particular picture but this is not quite what I want, I would like it to be dynamic, meaning, is there a way to read all the names of picture in the server where my website will reside and then put them in an array or something then loop through them forward and backward.

I know that javascript is for the user side and php is for the server side, also I know it's not a good idea to let javascript access directory the way I described.

So I just need some help or ideas to accomplish this task the proper way.

Thanks in advance.

Reply With Quote
  #2  
Old July 3rd, 2012, 01:45 AM
hdewantara's Avatar
hdewantara hdewantara is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2009
Location: Jakarta, Indonesia.
Posts: 149 hdewantara User rank is Sergeant Major (2000 - 5000 Reputation Level)hdewantara User rank is Sergeant Major (2000 - 5000 Reputation Level)hdewantara User rank is Sergeant Major (2000 - 5000 Reputation Level)hdewantara User rank is Sergeant Major (2000 - 5000 Reputation Level)hdewantara User rank is Sergeant Major (2000 - 5000 Reputation Level)hdewantara User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Day 18 h 50 m 40 sec
Reputation Power: 30
Send a message via MSN to hdewantara
As far as I know, JS couldn't possibly tell what image files reside inside a gallery directory, without a help from PHP. And if you're using this (ajax) scenario, I don't see any security dangers in that.

But why don't you just let PHP create your previous, and next links/ buttons. Current image state would be passed through a GET form, or though cookies. No JS is required, and it's simpler I guess.

Hendra

Last edited by hdewantara : July 3rd, 2012 at 01:48 AM.

Reply With Quote
  #3  
Old July 26th, 2012, 06:15 AM
annaharris annaharris is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2012
Location: USA
Posts: 33 annaharris Negative: is most likely a SPAMMER and a traitor to the cause. 
Time spent in forums: 8 h 1 m 35 sec
Reputation Power: 0
I use smugmug.com and post to galleries directly. I find it very simple and intuitive.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignJavaScript Development > New user - what is the best way to create web gallery

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap