How to use AJAX to save photo IDs so that they can be downloaded later?
Posted on 2010-08-27
I have a bunch of photo records in my database which I pull and print to the screen using php. I'd like to create a scenario in which you can select multiple photos, and have their IDs stored so that you can download them as a group later.
Example Table Structure printed using php:
First Name | Last Name | Photo ID | Add - Delete
John | Smith | 234 | Add - Delete
Barry | Bonds | 298 | Add - Delete
Test | Testerson | 143 | Add - Delete
Example usage: Site user can select 'add' or 'delete' to add or remove the photo ID to or from the list. When the user is done selecting photos, the photos are downloaded based on the IDs stored by AJAX. I envision this process being similar to a 'lightbox' that I have seen before on photo sites such as Dreamstime.com and the like.
Anyone have any easy to implement ideas on how to get this done? I just don't want the page to continually be refreshing while the user selects add or delete for each photo.