
July 3rd, 2012, 01:45 AM
|
 |
Contributing User
|
|
Join Date: Oct 2009
Location: Jakarta, Indonesia.
|
|
|
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.
|