Adobe
GoLive 6 Dynamic Content Samples
Overview
Database Design
Contact Sheet
Medium Image
Large Image
Edit Album
Confirm Deletion

text

A. Caption and file name of photo to delete. B. Cancel and delete buttons.

Content Sources

The Confirm Deletion page uses the PhotoData table. When the user arrives at this page by clicking on a delete link, the content source automatically selects the photo he has clicked.

A.

The caption and filename display information about the photo the user is about to delete.

B.

The delete button uses the Delete Record Form Action. Clicking it deletes the indicated photo from the database. The success and failure pages are both set to edit.jsp, so regardless of whether the delete action is successful, the user returns to the Edit Album page. A better design would show a different page on failure to give a useful error message.

The cancel button works differently. It uses client side javascript to implement the cancel behavior. The javascript looks like this:

onclick="document.URL='edit.jsp'"

When the user clicks this button, he returns to the Edit Album page without making any changes to the database. Note that the cancel button is a normal button, not a submit button.